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

Improve and correct typing of get_object_content and open file repository methods #6187

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Nov 21, 2023

No description provided.

@sphuber sphuber force-pushed the fix/repo-get-object-content-overload branch 3 times, most recently from 195ec52 to 0c974b4 Compare November 21, 2023 14:04
@sphuber sphuber requested review from unkcpz and mbercx November 21, 2023 14:52
@unkcpz
Copy link
Member

unkcpz commented Nov 21, 2023

I'll start holiday tomorrow till next Tuesday, so unassigned myself from reviewers.

@unkcpz unkcpz removed their request for review November 21, 2023 15:33
Added for the `FolderData` and `NodeRepository` classes.
Added for the `FolderData` and `NodeRepository` classes. The signature
of the `SinglefileData` was actually incorrect as it defined:

    t.Iterator[t.BinaryIO | t.TextIO]

as the return type, but which should really be:

    t.Iterator[t.BinaryIO] | t.Iterator[t.TextIO]

The former will cause `mypy` to raise an error.
@sphuber sphuber force-pushed the fix/repo-get-object-content-overload branch from 0c974b4 to 08684f9 Compare November 27, 2023 12:33
@sphuber sphuber merged commit 0986f6b into aiidateam:main Nov 27, 2023
@sphuber sphuber deleted the fix/repo-get-object-content-overload branch November 27, 2023 15:10
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.

2 participants