-
Notifications
You must be signed in to change notification settings - Fork 40
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
SG-37888 Python 2 removal #173
base: master
Are you sure you want to change the base?
Conversation
…aclass parameter, super format updated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Only a few comments
field_class = super(ShotgunFieldMeta, mcl).__new__( | ||
mcl, name, parents, class_dict | ||
) | ||
field_class = super().__new__(mcl, name, parents, class_dict) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we sure super() and new() work together?
tests/test_framework.py
Outdated
getargspec = inspect.getfullargspec | ||
|
||
try: | ||
spec = getargspec(attr.__init__) | ||
except TypeError as error: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can remove the useless variable
getargspec = inspect.getfullargspec | |
try: | |
spec = getargspec(attr.__init__) | |
except TypeError as error: | |
try: | |
spec = inspect.getfullargspec(attr.__init__) | |
except TypeError as error: |
Description
Test