Skip to content

Comments

Remove unnecessary = ...s; bump pyright test dependency to 1.1.301#9972

Merged
srittau merged 5 commits intopython:mainfrom
AlexWaygood:pyright-1.1.300
Mar 29, 2023
Merged

Remove unnecessary = ...s; bump pyright test dependency to 1.1.301#9972
srittau merged 5 commits intopython:mainfrom
AlexWaygood:pyright-1.1.300

Conversation

@AlexWaygood
Copy link
Member

@AlexWaygood AlexWaygood commented Mar 28, 2023

There's a lot of new errors; I'm opening a draft PR so that we can see exactly what they are and analyze/fix them where possible. Some may be bugs in pyright rather than typeshed.

@AlexWaygood AlexWaygood changed the title Bump pyright to 1.1.300 Bump pyright test dependency to 1.1.300 Mar 28, 2023
@AlexWaygood AlexWaygood changed the title Bump pyright test dependency to 1.1.300 Remove unnecessary = ...s; bump pyright test dependency to 1.1.300 Mar 29, 2023
@AlexWaygood AlexWaygood changed the title Remove unnecessary = ...s; bump pyright test dependency to 1.1.300 Remove unnecessary = ...s; bump pyright test dependency to 1.1.301 Mar 29, 2023
Comment on lines +8 to +20
BLACK: ClassVar[int]
BLUE: ClassVar[int]
GREEN: ClassVar[int]
CYAN: ClassVar[int]
RED: ClassVar[int]
MAGENTA: ClassVar[int]
YELLOW: ClassVar[int]
GREY: ClassVar[int]

class WinStyle:
NORMAL: int = ...
BRIGHT: int = ...
BRIGHT_BACKGROUND: int = ...
NORMAL: ClassVar[int]
BRIGHT: ClassVar[int]
BRIGHT_BACKGROUND: ClassVar[int]
Copy link
Member Author

@AlexWaygood AlexWaygood Mar 29, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These all look like they could probably be Final (source code here: https://github.com/tartley/colorama/blob/master/colorama/winterm.py), but that could cause false-positive errors if I'm incorrect about that, and I'm not confident enough to risk it

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems pretty clear these should be final. They're primitive enums.

@AlexWaygood AlexWaygood marked this pull request as ready for review March 29, 2023 11:45
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

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.

3 participants