Skip to content

[Pylint] Python 2 typing syntax is forbidden #31104

@lmazuel

Description

@lmazuel

The typing comment just below method signature should be forbidden now because we no longer support python 2.

This checker should ensure that the following is not allowed:


def function(self, max_wait_time, **kwargs):

     # type: (int, Any) -> None

     pass

and that inline typing passes:


def function(self, max_wait_time: int, **kwargs: Any) -> None:
     pass

Metadata

Metadata

Assignees

Labels

good first issueThis issue tracks work that may be a good starting point for a first-time contributorpylint

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions