Skip to content
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

PuyaPy: support _ variable for ignored variables #84

Open
daniel-makerx opened this issue Feb 6, 2024 · 0 comments
Open

PuyaPy: support _ variable for ignored variables #84

daniel-makerx opened this issue Feb 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@daniel-makerx
Copy link
Contributor

daniel-makerx commented Feb 6, 2024

Currently using _ as a variable name is not supported in PuyaPy as MyPy treats this as a union type, and union types are not supported in PuyaPy. However this is a common python convention and should be supported.

Current work around is to use a unique var name prefixed with _ e.g. _ignored

@achidlow achidlow added enhancement New feature or request and removed task labels Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants