-
Notifications
You must be signed in to change notification settings - Fork 146
Drop Python 2 support #90
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
Conversation
77e78dd to
ad604e4
Compare
9961b96 to
e40e6fa
Compare
| self.close() | ||
|
|
||
| def country(self, ip_address): | ||
| def country(self, ip_address: IPAddress) -> Country: |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
geoip2/records.py
Outdated
| iso_code=None, | ||
| names=None, | ||
| locales: Optional[List[str]] = None, | ||
| confidence: None = None, |
There was a problem hiding this comment.
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?
geoip2/webservice.py
Outdated
| license_key: str, | ||
| host: str = "geoip.maxmind.com", | ||
| locales: Optional[List[str]] = None, | ||
| timeout: None = None, |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"dropped"?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Although we don't currently use flake8 in CI, this is nice for anyone who has it enabled in their editor.
Not sure why these are there. I think an early prototype of GeoIP2 City has the postal values in location. Perhaps they are from that.
And switch a complicated yet mislead type signature to Any.
This is mostly so I can install from Git for minfraud and get 4.0.0.
No description provided.