File tree 3 files changed +9
-4
lines changed
3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,6 @@ networkx\.(utils\.)?(backends\.)?_dispatchable\.__call__
35
35
networkx.conftest
36
36
networkx(\..+?)?\.tests(\..+?)?
37
37
38
- # Stubtest crashes due to special unicode character
39
- networkx.readwrite.text.*
40
-
41
38
# "..._DT is not present at runtime" but we don't set it in stubs, I don't understand this one
42
39
networkx(\.algorithms)?(\.tree)?(\.mst)?\.SpanningTreeIterator\.Partition\._DT
43
40
networkx(\.algorithms)?(\.tree)?(\.branchings)?\.ArborescenceIterator\.Partition\._DT
Original file line number Diff line number Diff line change @@ -40,11 +40,13 @@ class UtfDirectedGlyphs(UtfBaseGlyphs):
40
40
last : ClassVar [str ]
41
41
mid : ClassVar [str ]
42
42
backedge : ClassVar [str ]
43
+ vertical_edge : ClassVar [str ]
43
44
44
45
class UtfUndirectedGlyphs (UtfBaseGlyphs ):
45
46
last : ClassVar [str ]
46
47
mid : ClassVar [str ]
47
48
backedge : ClassVar [str ]
49
+ vertical_edge : ClassVar [str ]
48
50
49
51
def generate_network_text (
50
52
graph ,
Original file line number Diff line number Diff line change @@ -125,7 +125,13 @@ def run_stubtest(
125
125
# It seems that some other environment variables are needed too,
126
126
# because the CI fails if we pass only os.environ["DISPLAY"]. I didn't
127
127
# "bisect" to see which variables are actually needed.
128
- stubtest_env = os .environ | {"MYPYPATH" : mypypath , "MYPY_FORCE_COLOR" : "1" }
128
+ stubtest_env = os .environ | {
129
+ "MYPYPATH" : mypypath ,
130
+ "MYPY_FORCE_COLOR" : "1" ,
131
+ # Prevent stubtest crash due to special unicode character
132
+ # https://github.com/python/mypy/issues/19071
133
+ "PYTHONUTF8" : "1" ,
134
+ }
129
135
130
136
# Perform some black magic in order to run stubtest inside uWSGI
131
137
if dist_name == "uWSGI" :
You can’t perform that action at this time.
0 commit comments