Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 725 Bytes

File metadata and controls

33 lines (27 loc) · 725 Bytes

Tests for ignoring variables with # auto-typing-final: ignore comment.

Variable with a comment

VAR_WITH_COMMENT = 1 # some comment  # insert

Ignored variable without type annotation

IGNORED_VAR = 1 # auto-typing-final: ignore

Ignored variable with Final type annotation

IGNORED_VAR: Final = 1 # auto-typing-final: ignore

Ignored variable with Final type annotation and additional comment

IGNORED_VAR: Final = 1 # auto-typing-final: ignore  # some comment

Function with an assigned variable

def foo():
    a = 1  # insert

Function with an ignored variable

def foo():
    a = 1  # auto-typing-final: ignore