Skip to content

Remove type annotation from some Loader args #1695

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
Oct 27, 2017
Merged

Remove type annotation from some Loader args #1695

merged 1 commit into from
Oct 27, 2017

Conversation

gvanrossum
Copy link
Member

There were two problems AFAICT:

  • There are multiple Loader classes without a common base class,
    so this should really be a union or a protocol.
  • The argument is supposed to be a class, not an instance.

Rather than figuring out a fix (which would probably require some
nasty refactoring) I'm just going back to the old situation where
these arguments are implicitly annotated with Any.

See also #1657 (review)

@Wilfred

There were two problems AFAICT:
- There are multiple Loader classes without a common base class,
  so this should really be a union or a protocol.
- The argument is supposed to be a class, not an instance.

Rather than figuring out a fix (which would probably require some
nasty refactoring) I'm just going back to the old situation where
these arguments are implicitly annotated with `Any`.

See also #1657 (review)
@gvanrossum
Copy link
Member Author

Merging this, as it is blocking adopting the latest typeshed for our internal codebase.

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