Skip to content

Conversation

@oschwald
Copy link
Member

No description provided.

@oschwald oschwald force-pushed the greg/py3 branch 2 times, most recently from 77e78dd to ad604e4 Compare July 10, 2020 21:56
@coveralls
Copy link

coveralls commented Jul 10, 2020

Coverage Status

Coverage increased (+0.3%) to 98.325% when pulling 47227d4 on greg/py3 into ba92347 on master.

@oschwald oschwald force-pushed the greg/py3 branch 2 times, most recently from 9961b96 to e40e6fa Compare July 10, 2020 22:35
self.close()

def country(self, ip_address):
def country(self, ip_address: IPAddress) -> Country:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to cast() the model_for call here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. mypy doesn't catch that one for some reason. These aren't actual runtime check so if they are wrong, it will just result in linting errors.

iso_code=None,
names=None,
locales: Optional[List[str]] = None,
confidence: None = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? As in, could it be an optional int?

license_key: str,
host: str = "geoip.maxmind.com",
locales: Optional[List[str]] = None,
timeout: None = None,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct? (As above)

HISTORY.rst Outdated
4.0.0
++++++++++++++++++

* IMPORTANT: Python 2.7 and 3.5 support have been drop. Python 3.6 or greater
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"has been dropped"?

HISTORY.rst Outdated
4.0.0
++++++++++++++++++

* IMPORTANT: Python 2.7 and 3.5 support has been drop. Python 3.6 or greater
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"dropped"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, I was so focused on whether the plural or singular was actually right that I totally missed that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I cleaned up the history a bit and applied the changes to the original commit that added the line.

@horgh horgh merged commit 02c196e into master Jul 13, 2020
@horgh horgh deleted the greg/py3 branch July 13, 2020 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants