Enable "no_implicit_reexport"
Also, remove the unused `orm_exc` import alias
This commit is contained in:
parent
d9364eea9e
commit
e4016db9fe
1 changed files with 53 additions and 5 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue