Skip to content

Enable more of mypy's diagnostics #983

@SamWilsn

Description

@SamWilsn

The full list is here: https://mypy.readthedocs.io/en/stable/error_code_list2.html

From a quick read, we probably want to enable at least:

  • disallow-any-generics
  • disallow-untyped-defs
  • warn-redundant-casts
  • strict-equality
  • disallow-untyped-calls
  • warn-return-any
  • disallow-any-unimported
  • warn-unreachable
  • ignore-without-code
  • unused-ignore
  • explicit-override
  • mutable-override

I think some of these are already on, but it doesn't hurt to check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-spec-toolArea: Specification Tooling—Tools for the Ethereum specification (eg. `src/ethereum_spec_tools/*`)C-featCategory: an improvement or new featureE-easyExperience: easy, good for newcomersP-highstaleThe Issue/PR has not had any activity for 60 days. PRs will be automatically closed.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions