Skip to content

Remove type annotation from some Loader args - #1695

Merged
gvanrossum merged 1 commit into
masterfrom
yamlfix
Oct 27, 2017
Merged

gvanrossum merged 1 commit into
masterfrom
yamlfix

Conversation

@gvanrossum

Copy link
Copy Markdown
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
Copy Markdown
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