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

Refactor generator detection #252

Merged
merged 1 commit into from
Apr 2, 2024
Merged

Refactor generator detection #252

merged 1 commit into from
Apr 2, 2024

Conversation

deathaxe
Copy link
Member

@deathaxe deathaxe commented Apr 2, 2024

Use isinstance(obj, Iterable) to detect generator functions in python 3.3 environment and isinstance(obj, Generator) on python 3.8.

Use `isinstance(obj, Iterable)` to detect generator functions.

Note: `Iterable` is used as `Generator` is not available in python 3.3
@deathaxe deathaxe merged commit 217fab5 into master Apr 2, 2024
15 checks passed
@deathaxe deathaxe deleted the feat/generator-detection branch April 2, 2024 16:45
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.

1 participant