Blob Blame History Raw
From 487417bd15da1a1c02dc0dff15409402af20b95f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= <aurelien@bompard.org>
Date: Thu, 25 Jul 2019 16:56:31 +0200
Subject: [PATCH] Fix compatibility with Sphinx >= 2.1

Workaround https://github.com/sphinx-doc/sphinx/issues/6474
---
 cornice_sphinx/__init__.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cornice_sphinx/__init__.py b/cornice_sphinx/__init__.py
index c26d4c7..662ee43 100644
--- a/cornice_sphinx/__init__.py
+++ b/cornice_sphinx/__init__.py
@@ -71,6 +71,9 @@ class ServiceDirective(Directive):
         super(ServiceDirective, self).__init__(*args, **kwargs)
         self.env = self.state.document.settings.env
 
+    def get_field_type_map(self):
+        return {}
+
     def run(self):
         app_name = self.options.get('app')
         if app_name:
-- 
2.21.0