Skip to content

Type hints for mypy #45

Closed
Closed

Description

@jolaf

I've created .pyi type hints (for Python 3) for this library and I would like to submit them to python/typeshed.
What do you think about it?

Activity

  1. txomon commented on Sep 15, 2019

    @txomon

    I would be very interested in this, what's the status?

  2. oschwald commented on Sep 18, 2019

    @oschwald
    Member

    I apologize for not responding earlier, but having the type hints submitted there would be great!

  3. jolaf commented on Sep 19, 2019

    @jolaf
    Author
  4. jolaf commented on Sep 19, 2019

    @jolaf
    Author

    @oschwald
    Could you please help with maxmind/GeoIP2-python#70 too?

  5. oschwald commented on Oct 3, 2019

    @oschwald
    Member

    One thing to note on the type hints, as of 1.5.0, get (and the new get_with_prefix_len) support ipaddress.IPv4Address and ipaddress.IPv6Address as arguments in addition to a string. See #48.

  6. jolaf commented on Oct 3, 2019

    @jolaf
    Author

    In future when modifying the library API you can simultaneously update the stubs in typeshed via pull requests to https://github.com/python/typeshed/tree/master/third_party/3/maxminddb

  7. srittau commented on Oct 4, 2019

    @srittau

    Also, when and if you are committed to keeping the stubs updated yourself, you could consider shipping them with maxminddb. This way the stubs would always match the installed version and updated cause less friction. In that case, feel free to ping me to review the stubs or if you need assistance. But we are also happy to continue hosting the stubs in typeshed.

  8. oschwald commented on Oct 4, 2019

    @oschwald
    Member

    Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions