Skip to content

Allow callables in _SourceObjectType#3295

Merged
srittau merged 1 commit intomasterfrom
getsource
Oct 2, 2019
Merged

Allow callables in _SourceObjectType#3295
srittau merged 1 commit intomasterfrom
getsource

Conversation

@JelleZijlstra
Copy link
Member

This is important because mypy doesn't generally think functions are compatible with FunctionType, so inspect.getsource on arbitrary functions is rejected by the current annotations.

This is important because mypy doesn't generally think functions are compatible with `FunctionType`, so `inspect.getsource` on arbitrary functions is rejected by the current annotations.
@srittau srittau merged commit c38cf67 into master Oct 2, 2019
@srittau srittau deleted the getsource branch October 2, 2019 22:52
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