Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

python37 type check fix #612

Merged
merged 1 commit into from Aug 17, 2018
Merged

Conversation

alkovpro
Copy link
Contributor

This pull request is a finishing of #598 ( python 3.7 issue - #595 )
It fixes type checks which prevented to generate schema responses when running in python 3.7
It also adds 3.7-dev to the travis matrix.

I ran tests on python 3.6 and 3.7 and they're ok:
========================== 316 passed in 8.79 seconds ==========================.......

@@ -88,9 +88,10 @@ def generate_response(self, handler):
return Response(encoding='application/json', status_code=200, schema=annotation)

def coerce_generics(self, annotation):
origin = getattr(annotation, '__origin__', annotation)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't say it make me happy, but sure.

@tomchristie tomchristie merged commit 86af0f1 into encode:master Aug 17, 2018
@tomchristie
Copy link
Member

Thanks!

@alkovpro
Copy link
Contributor Author

Thank you for accepting my PRs! )

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants