File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,9 @@ allow-dict-calls-with-keyword-arguments = true
208208"concurrent.futures" = " cf"
209209
210210[tool .ruff .lint .flake8-tidy-imports .banned-api ]
211+
212+ # typing apis first
213+
211214# https://discuss.python.org/t/problems-with-typeis/55410/6
212215# https://discuss.python.org/t/problems-with-typeis/55410/46
213216# Until what can go into a TypeIs/TypeGuard changes, these are just dangerous.
@@ -229,6 +232,12 @@ allow-dict-calls-with-keyword-arguments = true
229232# Arguably, much of the collections.abc APIs should be banned as well, but the use in this library is
230233# aware of the problems.
231234
235+ # These are some asyncio APIs that are problematic
236+
237+ "asyncio.shield".msg = " This doesn't do what almost anyone thinks. Just don't use it."
238+ "asyncio.TaskGroup".msg = " see pep 789"
239+ "asyncio.Timeout".msg = " see pep 789"
240+
232241[project ]
233242name = " mikeshardmind-async-utils"
234243description = " Various async utilities"
You can’t perform that action at this time.
0 commit comments