Skip to content

Commit 53989c5

Browse files
committed
Merge branch 'main' of https://github.com/python/typeshed into networkx-merge-from-python-type-stubs
2 parents 5bcdc2c + bcffe74 commit 53989c5

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

stubs/networkx/networkx/readwrite/gexf.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
from _typeshed import Incomplete
22
from collections.abc import Generator
3-
from typing import Literal
3+
from typing import Final, Literal
44

5+
from networkx.classes.graph import Graph, _Node
56
from networkx.utils.backends import _dispatchable
67

7-
from ..classes.graph import Graph, _Node
8-
98
__all__ = ["write_gexf", "read_gexf", "relabel_gexf_graph", "generate_gexf"]
109

1110
def write_gexf(G: Graph[_Node], path, encoding: str = "utf-8", prettyprint: bool = True, version: str = "1.2draft") -> None: ...
@@ -20,7 +19,7 @@ class GEXF:
2019
xml_type: Incomplete
2120
python_type: Incomplete
2221
def construct_types(self) -> None: ...
23-
convert_bool: dict[Literal["true", "false", "True", "False", "0", 0, "1", 1], bool]
22+
convert_bool: Final[dict[Literal["true", "false", "True", "False", "0", 0, "1", 1], bool]]
2423
NS_GEXF: Incomplete
2524
NS_VIZ: Incomplete
2625
NS_XSI: Incomplete

stubs/networkx/networkx/readwrite/graphml.pyi

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ from _typeshed import Incomplete
22
from collections.abc import Generator
33
from typing import Final, Literal
44

5+
from networkx.classes.graph import Graph, _Node
56
from networkx.utils.backends import _dispatchable
67

7-
from ..classes.graph import Graph, _Node
8-
98
__all__ = [
109
"write_graphml",
1110
"read_graphml",
@@ -51,7 +50,7 @@ class GraphML:
5150
xml_type: Incomplete
5251
python_type: Incomplete
5352
def construct_types(self) -> None: ...
54-
convert_bool: dict[Literal["true", "false", "0", 0, "1", 1], bool]
53+
convert_bool: Final[dict[Literal["true", "false", "0", 0, "1", 1], bool]]
5554
def get_xml_type(self, key): ...
5655

5756
class GraphMLWriter(GraphML):

0 commit comments

Comments
 (0)