Skip to content

Fix serialisation when constructor has py3 type annotations#12

Open
mbatchkarov wants to merge 1 commit intoboris317:masterfrom
mbatchkarov:master
Open

Fix serialisation when constructor has py3 type annotations#12
mbatchkarov wants to merge 1 commit intoboris317:masterfrom
mbatchkarov:master

Conversation

@mbatchkarov
Copy link

@mbatchkarov mbatchkarov commented Jan 30, 2018

By using getfullargspec instead of the deprecated getargspec. Classes like this now work:

class Person:
     def __init__(self, name: str):
         self.name = name

PS I'm running Python 3.6. This won't work on 2.7 as it is, but it can be done. How important is it to support 2.7?

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