Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added check for importing a Final variable from another module and … #9531

Closed
wants to merge 1 commit into from

Conversation

erictraut
Copy link
Collaborator

…then attempting to overwrite it. This partially addresses microsoft/pylance-release#6455.

Copy link
Contributor

github-actions bot commented Dec 2, 2024

Diff from mypy_primer, showing the effect of this PR on open source code:

rotki (https://github.com/rotki/rotki)
+ /tmp/mypy_primer/projects/rotki/rotkehlchen/tests/fixtures/__init__.py
+   /tmp/mypy_primer/projects/rotki/rotkehlchen/tests/fixtures/__init__.py:4:6 - error: "USERSDIR_NAME" is declared as Final and cannot be reassigned (reportGeneralTypeIssues)
- 3437 errors, 265 warnings, 0 informations 
+ 3438 errors, 265 warnings, 0 informations 

@erictraut erictraut closed this Dec 2, 2024
@erictraut erictraut deleted the issue-6455 branch December 2, 2024 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant