Skip to content

Replace deprecated Str, Num with Constant, fixes #524 #525

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

timkpaine
Copy link
Member

No description provided.

@timkpaine timkpaine added type: enhancement Issues and PRs related to improvements to existing features tag: internal Issues and PRs for maintainance of the project - not interesting to external users labels Apr 27, 2025
elif isinstance(kwd.value, ast.NameConstant) and isinstance(kwd.value.value, bool):
self._state_types[kwd.arg] = bool
if isinstance(kwd.value, ast.Constant):
self._state_types[kwd.arg] = type(kwd.value)
Copy link
Member Author

Choose a reason for hiding this comment

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

would be good to sanity check this

@timkpaine timkpaine marked this pull request as ready for review April 28, 2025 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tag: internal Issues and PRs for maintainance of the project - not interesting to external users type: enhancement Issues and PRs related to improvements to existing features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants