Skip to content

Refactor generator detection#252

Merged
deathaxe merged 1 commit intomasterfrom
feat/generator-detection
Apr 2, 2024
Merged

Refactor generator detection#252
deathaxe merged 1 commit intomasterfrom
feat/generator-detection

Conversation

@deathaxe
Copy link
Copy Markdown
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
@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