Skip to content

EC4 - False positives with TypeVar #23

@Horrih

Description

@Horrih

Describe the bug
When using python's TypeVar mechanism for type annotations, EC4 code smell is triggered.
This should not be considered a code smell since using it in global scope is the standard way.

To Reproduce
Example straight from the python official documentation
image

Expected behavior
Do not flag this as an error

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions