Autogenerate Async stubs for auth0-python #13826
Open
+1,095
−371
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This started as an experiment/demonstration for auth0/auth0-python#615 & auth0/auth0-python#678 (comment) . But I think it's actually good enough to be considered seriously.
With these changes, the stubs are a lot closer to the actual runtime implementations.
This can surely be improved further by using actual codemods and ast-based replacements. I was just more familiar with regex to get it working this way first.
Some manual changes here (related to removing entries from
stubs/auth0-python/@tests/stubtest_allowlist.txt
) can be done separately (I'll open a separate PR for them)