Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

flake8-type-ignore

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flake8-type-ignore

flake8-type-ignore allows you to disallow type: ignore comments in your typed Python code.

  • 0.1.0.post2
  • PyPI
  • Socket score

Maintainers
1

flake8-type-ignore

flake8-type-ignore allows you to disallow type: ignore comments in your typed Python code.

Usage

When installed into your Python environment running flake8, this plugin will raise errors according to the table below. For example, installing this plugin will raise flake8 errors in the following code:

# This line raises TI100
x: str = 1  # type: ignore

# This line raises both TI101 and TI139
x.y = 2  # type:ignore[attr-defined,misc]

def print_only_strings(arg: str):
    print(arg)

# This line raises TI104
print_only_strings(123)

Error codes

flake8-type-ignore error codemypy error code
TI001Meta error code for invalid type: ignore comments.
TI002Meta error code for unknown mypy error codes.
TI100Bare type: ignore comment
TI101attr-defined
TI102name-defined
TI103call-arg
TI104arg-type
TI105call-overload
TI106valid-type
TI107var-annotated
TI108override
TI109return
TI110return-value
TI111assignment
TI112type-arg
TI113type-var
TI114union-attr
TI115index
TI116operator
TI117list-item
TI118dict-item
TI119typeddict-item
TI120has-type
TI121import
TI122no-redef
TI123func-returns-value
TI124abstract
TI125valid-newtype
TI126str-format
TI127str-bytes-safe
TI128exit-return
TI129no-untyped-def
TI130no-untyped-call
TI131redundant-cast
TI132comparison-overlap
TI133no-any-unimported
TI134no-any-return
TI135unreachable
TI136redundant-expr
TI137name-match
TI138syntax
TI139misc

License

flake8-type-ignore is available under the BSD 3-Clause license. See the LICENSE file for more details.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc