Closed qexat closed 10 months ago
Hello! I've watched your video, and the project is awesome!
I am currently attempting to add type hints and related stuff, and while I was doing so, I noticed a sneaky trailing comma in this file.
NAME_DISCS = 0,
This makes NAME_DISCS a tuple[int] instead of an int (although I think it probably should be a bool), which can lead to unintended behavior/bugs...
NAME_DISCS
tuple[int]
int
bool
Here's what you probably wanted:
NAME_DISCS = 0
I made a PR (#3) to fix that.
Have a good day!
Good catch, thank you. I'm not sure how that comma got in there
PR merged
Hello! I've watched your video, and the project is awesome!
I am currently attempting to add type hints and related stuff, and while I was doing so, I noticed a sneaky trailing comma in this file.
This makes
NAME_DISCS
atuple[int]
instead of anint
(although I think it probably should be abool
), which can lead to unintended behavior/bugs...Here's what you probably wanted:
I made a PR (#3) to fix that.
Have a good day!