Skip to content

Commit 3134297

Browse files
authored
Update README.md
1 parent 1d678b6 commit 3134297

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Auto-fixer for Python code that adds `typing.Final` annotation to variable assignments inside functions that are not reassigned, and removes the annotation from variables that _are_ mutated.
44

5+
Keeps mypy happy.
6+
57
- Global `import typing` will be added if `typing` was not imported before.
68
- Global variables are ignored to avoid confusion with the type aliases like `Fruit = Apple | Banana`.
79
- Class variables are ignored since it is common to use `typing.ClassVar` instead of `typing.Final`.

0 commit comments

Comments
 (0)