1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
Subject: Fix type hint
Author: Alexander Sulfrian <alexander@sulfrian.net>
Forwarded: https://github.com/nucleic/atom/pull/248
Sphinx does not understand forwared references without quotes. So autodoc will
fail if the quotes are missing.
Index: python-atom/atom/datastructures/sortedmap.pyi
===================================================================
--- python-atom.orig/atom/datastructures/sortedmap.pyi
+++ python-atom/atom/datastructures/sortedmap.pyi
@@ -24,7 +24,7 @@ class sortedmap(Generic[K, V]):
def keys(self) -> List[K]: ...
def values(self) -> List[V]: ...
def items(self) -> List[Tuple[K, V]]: ...
- def copy(self) -> sortedmap[K, V]: ...
+ def copy(self) -> "sortedmap[K, V]": ...
def __contains__(self, key: K) -> bool: ...
def __getitem__(self, key: K) -> V: ...
def __setitem__(self, key: K, value: V) -> None: ...
|