Blame 0001-Fix-compatibility-with-Sphinx-2.1.patch

4c175dd
From 487417bd15da1a1c02dc0dff15409402af20b95f Mon Sep 17 00:00:00 2001
4c175dd
From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= <aurelien@bompard.org>
4c175dd
Date: Thu, 25 Jul 2019 16:56:31 +0200
4c175dd
Subject: [PATCH] Fix compatibility with Sphinx >= 2.1
4c175dd
4c175dd
Workaround https://github.com/sphinx-doc/sphinx/issues/6474
4c175dd
---
4c175dd
 cornice_sphinx/__init__.py | 3 +++
4c175dd
 1 file changed, 3 insertions(+)
4c175dd
4c175dd
diff --git a/cornice_sphinx/__init__.py b/cornice_sphinx/__init__.py
4c175dd
index c26d4c7..662ee43 100644
4c175dd
--- a/cornice_sphinx/__init__.py
4c175dd
+++ b/cornice_sphinx/__init__.py
4c175dd
@@ -71,6 +71,9 @@ class ServiceDirective(Directive):
4c175dd
         super(ServiceDirective, self).__init__(*args, **kwargs)
4c175dd
         self.env = self.state.document.settings.env
4c175dd
 
4c175dd
+    def get_field_type_map(self):
4c175dd
+        return {}
4c175dd
+
4c175dd
     def run(self):
4c175dd
         app_name = self.options.get('app')
4c175dd
         if app_name:
4c175dd
-- 
4c175dd
2.21.0
4c175dd