From 8141fbfcf7e3f676ff51839c37147d8e9fc29ceb Mon Sep 17 00:00:00 2001 From: Aidan Holland Date: Fri, 28 Aug 2026 12:02:59 -0400 Subject: [PATCH] chore(mypy): enable stricter type checking flags Enables 8 flags that pass with zero errors: - warn_unused_configs / warn_redundant_casts / warn_unused_ignores - strict_equality / extra_checks / no_implicit_reexport - check_untyped_defs / disallow_untyped_decorators Also removes a stale `# type: ignore[override]` in certs.py that was flagged by warn_unused_ignores. Co-Authored-By: Claude Sonnet 4.6 --- censys/search/v2/certs.py | 2 +- pyproject.toml | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/censys/search/v2/certs.py b/censys/search/v2/certs.py index aaf72a82..519ec367 100644 --- a/censys/search/v2/certs.py +++ b/censys/search/v2/certs.py @@ -251,7 +251,7 @@ def raw_search( **kwargs, ) - def search( # type: ignore[override] + def search( self, query: str, per_page: int = 50, diff --git a/pyproject.toml b/pyproject.toml index e0e77f45..15dd59c7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -114,6 +114,14 @@ python_version = "3.9" files = ["censys"] namespace_packages = true explicit_package_bases = true +warn_unused_configs = true +warn_redundant_casts = true +warn_unused_ignores = true +strict_equality = true +extra_checks = true +no_implicit_reexport = true +check_untyped_defs = true +disallow_untyped_decorators = true [[tool.mypy.overrides]] module = ["rich", "attr"]