| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
I'm not sure this needs to be in the docs; I am sure that this is not the right section for them to be in. I'll try to review the enum docs this week to see if there is a better spot for this warning.
Sorry, something went wrong.
|
@ethanfurman To expand a little on the motivation, the codebase that I originally encountered this had something close to class ElementType(StrEnum):
title = "..."
comment = "..."
author = "..."
# ...It didn't occur to me at first that the errors I was seeing in mypy (mypy was being added after the fact) were due to StrEnum inheriting from str, hence why I also thought that it might be a good idea to add a warning/note to the docs. |
Sorry, something went wrong.
|
Closing in favor of #103596. Thank you, @samypr100 for the encouragement to properly fix this behavior. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Closes #101273