You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
3
3
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.
4
4
5
+
Keeps mypy happy.
6
+
5
7
- Global `import typing` will be added if `typing` was not imported before.
6
8
- Global variables are ignored to avoid confusion with the type aliases like `Fruit = Apple | Banana`.
7
9
- Class variables are ignored since it is common to use `typing.ClassVar` instead of `typing.Final`.
0 commit comments