@@ -77,56 +77,13 @@ warn_return_any = true
7777# Avoid subtle backsliding
7878disallow_any_decorated = true
7979disallow_any_generics = true
80- disallow_any_unimported = false # Enable once Outcome has stubs.
80+ disallow_any_unimported = true
8181disallow_incomplete_defs = true
8282disallow_subclassing_any = true
83+ disallow_untyped_calls = true
8384disallow_untyped_decorators = true
8485disallow_untyped_defs = true
85-
86- # Enable once other problems are dealt with
8786check_untyped_defs = true
88- disallow_untyped_calls = false
89-
90- # files not yet fully typed
91- [[tool .mypy .overrides ]]
92- module = [
93- # tests
94- " trio/testing/_fake_net" ,
95- " trio/_core/_tests/test_guest_mode" ,
96- " trio/_core/_tests/test_instrumentation" ,
97- " trio/_core/_tests/test_ki" ,
98- " trio/_core/_tests/test_local" ,
99- " trio/_core/_tests/test_mock_clock" ,
100- " trio/_core/_tests/test_multierror" ,
101- " trio/_core/_tests/test_multierror_scripts/ipython_custom_exc" ,
102- " trio/_core/_tests/test_multierror_scripts/simple_excepthook" ,
103- " trio/_core/_tests/test_parking_lot" ,
104- " trio/_core/_tests/test_thread_cache" ,
105- " trio/_core/_tests/test_unbounded_queue" ,
106- " trio/_tests/test_exports" ,
107- " trio/_tests/test_file_io" ,
108- " trio/_tests/test_highlevel_generic" ,
109- " trio/_tests/test_highlevel_open_unix_stream" ,
110- " trio/_tests/test_highlevel_serve_listeners" ,
111- " trio/_tests/test_highlevel_ssl_helpers" ,
112- " trio/_tests/test_scheduler_determinism" ,
113- " trio/_tests/test_ssl" ,
114- " trio/_tests/test_subprocess" ,
115- " trio/_tests/test_sync" ,
116- " trio/_tests/test_testing" ,
117- " trio/_tests/test_threads" ,
118- " trio/_tests/test_timeouts" ,
119- " trio/_tests/test_tracing" ,
120- " trio/_tests/test_util" ,
121- " trio/_tests/test_wait_for_object" ,
122- " trio/_tests/tools/test_gen_exports" ,
123- ]
124- check_untyped_defs = false
125- disallow_any_decorated = false
126- disallow_any_generics = false
127- disallow_any_unimported = false
128- disallow_incomplete_defs = false
129- disallow_untyped_defs = false
13087
13188[tool .pytest .ini_options ]
13289addopts = [" --strict-markers" , " --strict-config" ]
0 commit comments