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

Don't use PEP 604 type hints, to stay compatible with Python<3.10. #2578

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

realazthat
Copy link
Contributor

status_dict: dict|None = None relies on PEP 604 to use the | to mean "or". Previously (Python<3.10) one had to use Union or Optional. The previous change (1b3d65b) is probably breaking ComfyUI for some people who are using older versions of python. This PR fixes the issue.

@comfyanonymous comfyanonymous merged commit fad02dc into comfyanonymous:master Jan 18, 2024
1 check passed
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.

2 participants