Skip to content

Commit 8ed6a30

Browse files
committed
ci: add banned imports for typing_extensions
Signed-off-by: nstarman <[email protected]>
1 parent b0e9222 commit 8ed6a30

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎pyproject.toml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,12 @@ mypy-init-return = true
513513
[tool.ruff.lint.flake8-comprehensions]
514514
allow-dict-calls-with-keyword-arguments = true
515515

516+
[tool.ruff.lint.flake8-tidy-imports.banned-api]
517+
"typing_extensions.TypeForm".msg = "`TypeForm` is from draft PEP 747."
518+
"typing_extensions.disjoint_base".msg = "`disjoint_base` is from draft PEP 800."
519+
"typing_extensions.Doc".msg = "`Doc` is from withdrawn PEP 727."
520+
"typing_extensions.Sentinel".msg = "`Sentinel` is from deferred PEP 661."
521+
516522
[tool.ruff.lint.isort]
517523
known-first-party = ["astropy", "extension_helpers"]
518524

0 commit comments

Comments
 (0)