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

Remove obsolete typing.io import #922

Closed
wants to merge 4 commits into from
Closed

Remove obsolete typing.io import #922

wants to merge 4 commits into from

Conversation

srittau
Copy link

@srittau srittau commented May 18, 2022

Description

typing.io has been deprecated since Python 3.8 and will be removed in Python 3.12. TextIO and BinaryIO are available from the main typing namespace, though, so the existing star import should be sufficient.

Checklist:

  • Tests added/updated.
  • Documentation updated. Documentation is generated from docstrings - these must be updated according to your change.
    If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.
  • Changelog updated in CHANGELOG.md.
  • Version bumped. If triggering a new release is desired, bump the version number in _version.py per semantic versioning.

Does this require a changelog entry?

`typing.io` has been deprecated since Python 3.8 and will be removed in Python 3.12. `TextIO` and `BinaryIO` are available from the main `typing` namespace, though, so the existing star import should be sufficient.
@erlendvollset
Copy link
Collaborator

Thanks! This has been addressed in a different PR.

@srittau srittau deleted the patch-1 branch October 10, 2022 09:47
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.

3 participants