Skip to content

Allow partials and other non-function callables as importer callbacks #291

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

Merged
merged 1 commit into from
Mar 5, 2019

Conversation

fdintino
Copy link
Contributor

@fdintino fdintino commented Mar 5, 2019

This is the follow up PR based on the discussion in #287.

I removed the functools.wraps decorator because it doesn't work with object.__call__ or functools.partial (since neither have the __name__ attribute). But it seemed unnecessary anyway because (as far as I can tell) the wrapped functions aren't exposed to the user.

Copy link
Member

@asottile asottile left a comment

Choose a reason for hiding this comment

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

Thanks!

@fdintino
Copy link
Contributor Author

fdintino commented Mar 5, 2019

oops. Missed a flake8 issue. Will force push a correction.

@fdintino fdintino force-pushed the fix-importer-argspec branch from 7ba30fb to 4866296 Compare March 5, 2019 20:57
@asottile asottile merged commit 0c43a0f into sass:master Mar 5, 2019
@asottile
Copy link
Member

asottile commented Mar 5, 2019

Thanks again! Let me know how this branch works for you and I can make a release soon :)

@fdintino
Copy link
Contributor Author

fdintino commented Mar 6, 2019

This works perfectly. Thanks!

@fdintino
Copy link
Contributor Author

Any idea on when this might make it into a release?

@asottile
Copy link
Member

I'll do this tonight, so in a few hours :)

@asottile
Copy link
Member

0.18.0 is released, the windows wheels will be up in ~an hour and the mac wheels will be up tomorrow if I remember

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.

2 participants