Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

make patch more compatible with classmethods #309

Merged
merged 2 commits into from
Apr 28, 2021

Conversation

tezike
Copy link
Contributor

@tezike tezike commented Apr 28, 2021

This pr helps fix an issue that was reported on the forums. patch when used with classmethods propagates the type_hints of the cls arg into the patch_to function. This causes Transform's TypeDispatch to receive the wrong type_hints

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@muellerzr
Copy link
Contributor

muellerzr commented Apr 28, 2021

@hamelsmu
Copy link
Contributor

Please clean the notebooks nbdev_clean_nbs

@tezike
Copy link
Contributor Author

tezike commented Apr 28, 2021

Super sorry, I have cleaned the nbs. I hope that sorts out the CI tests
cc @hamelsmu

@hamelsmu hamelsmu merged commit f95cd74 into AnswerDotAI:master Apr 28, 2021
@jph00 jph00 added the enhancement New feature or request label May 4, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants