Enable "no_implicit_reexport"

Also, remove the unused `orm_exc` import alias
This commit is contained in:
Alexander Hess 2026-12-01 09:30:07 +01:00
commit e4016db9fe
Signed by: alexander
GPG key ID: B46EDB4DFC26805D

View file

@ -469,8 +469,8 @@ enable_error_code = ["ignore-without-code"]
# Check further edge cases that are rarely an issue in practice
extra_checks = true
# Treat imported names as re-exported as long as some packages lack `__all__`
no_implicit_reexport = false
# Treat only names listed in `__all__` as re-exported
no_implicit_reexport = true
# Disallow comparisons of non-overlapping types (e.g., `str` and `int`)
strict_equality = true
@ -749,7 +749,6 @@ banned-from = [
"sqlalchemy.dialects.postgresql" = "psql"
"sqlalchemy.exc" = "sa_exc"
"sqlalchemy.ext.hybrid" = "sa_hybrid"
"sqlalchemy.orm.exc" = "orm_exc"
"statsmodels.tsa.api" = "tsa"
"tests.config" = "test_config"
"typing" = "t"