freebsd-ports/textproc/py-sphinx-inline-tabs/files/patch-src-sphinx_inline_tabs-_impl.py
Po-Chuan Hsieh 4e0b1f60aa
textproc/py-sphinx-inline-tabs: Complete the fix for Python 3.6 and 3.7
- Bump PORTREVISION for dependency and package change

Reported by:	fluffy
2021-05-16 23:24:10 +08:00

15 lines
408 B
Python

--- src/sphinx_inline_tabs/_impl.py.orig 2021-04-11 11:03:11 UTC
+++ src/sphinx_inline_tabs/_impl.py
@@ -1,7 +1,11 @@
"""The actual implementation."""
import itertools
-from typing import List, Literal
+from typing import List
+try:
+ from typing import Literal
+except ImportError:
+ from typing_extensions import Literal
from docutils import nodes
from docutils.parsers.rst import directives