File: Fix-type-hint.patch

package info (click to toggle)
python-atom 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 1,676 kB
  • sloc: cpp: 9,254; python: 6,181; makefile: 123
file content (20 lines) | stat: -rw-r--r-- 879 bytes parent folder | download
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: ...