Skip to content
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

Plugin behaviour dependent on third-party module version? #3813

Closed
jstasiak opened this issue Aug 8, 2017 · 2 comments
Closed

Plugin behaviour dependent on third-party module version? #3813

jstasiak opened this issue Aug 8, 2017 · 2 comments
Labels
topic-plugins The plugin API and ideas for new plugins

Comments

@jstasiak
Copy link
Contributor

jstasiak commented Aug 8, 2017

I was looking at mypy plugin infrastructure the other day and I wondered what's the solution to the following issue (let's assume we have a third party module supermod):

  • supermod version 1.1 has function superfun returning types X or Z, depending on some parameter
  • supermod version 1.2 has function superfun returning types Y or W, depending on some parameter
  • I'd like to have a mypy plugin that can handle both of those versions correctly

In order to do that a plugin would have to be able to inspect version of supermod installed I think... Alternatively the version could be provided in per-plugin options, like #3532 describes. What do you think about this?

@gvanrossum
Copy link
Member

We should wait until python/typing#84 is solved and then make the package version available to plugins.

@JukkaL JukkaL added the topic-plugins The plugin API and ideas for new plugins label Aug 9, 2017
@hauntsaninja
Copy link
Collaborator

Closing because stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-plugins The plugin API and ideas for new plugins
Projects
None yet
Development

No branches or pull requests

4 participants