Skip to content

Remove obsolete typing.io import#922

Closed
srittau wants to merge 4 commits intocognitedata:masterfrom
srittau:patch-1
Closed

Remove obsolete typing.io import#922
srittau wants to merge 4 commits intocognitedata:masterfrom
srittau:patch-1

Conversation

@srittau
Copy link
Copy Markdown

@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
Copy Markdown
Contributor

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