We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
class A: q: int | None = None
Pyreverse generates:
classDiagram class A { q : Optional[int | None] }
Optional[int | None] is redundant. It should just be int | None.
Optional[int | None]
int | None
No response
pyreverse -o mmd
classDiagram class A { q : int | None }
pylint 3.0.0a8-dev0 astroid 3.0.0a10-dev0
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Bug description
Pyreverse generates:
Optional[int | None]
is redundant. It should just beint | None
.Configuration
No response
Command used
Pylint output
Expected behavior
classDiagram
class A {
q : int | None
}
Pylint version
OS / Environment
No response
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: