Skip to content

Commit

Permalink
🔧 Update mypy config, use strict = true instead of manual configs (#…
Browse files Browse the repository at this point in the history
…4605)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
  • Loading branch information
Michael Oliver and tiangolo committed Aug 26, 2022
1 parent 2609742 commit 8cd8aa4
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions pyproject.toml
Expand Up @@ -104,21 +104,7 @@ profile = "black"
known_third_party = ["fastapi", "pydantic", "starlette"]

[tool.mypy]
# --strict
disallow_any_generics = true
disallow_subclassing_any = true
disallow_untyped_calls = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
check_untyped_defs = true
disallow_untyped_decorators = true
no_implicit_optional = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_return_any = true
implicit_reexport = false
strict_equality = true
# --strict end
strict = true

[[tool.mypy.overrides]]
module = "fastapi.concurrency"
Expand Down

0 comments on commit 8cd8aa4

Please sign in to comment.