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

Add TypedEntitySchema #18

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Minor fix

c91f6ef
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Open

Add TypedEntitySchema #18

Minor fix
c91f6ef
Select commit
Loading
Failed to load commit list.
GitHub Actions / JUnit Test Report failed Oct 23, 2024 in 0s

1 tests run, 0 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 1 in .venv/lib/python3.11/site-packages/mypy/xml/mypy.xsd

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

mypy.mypy-py3_11-linux

mypy produced messages
Raw output
tests/typed_entities/test_typed_entities.py:26: error: No overload variant of "NamedTemporaryFile" matches argument types "str", "bool", "bool"  [call-overload]
tests/typed_entities/test_typed_entities.py:26: note: Possible overload variants:
tests/typed_entities/test_typed_entities.py:26: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: Literal['r+', '+r', 'rt+', 'r+t', '+rt', 'tr+', 't+r', '+tr', 'w+', '+w', 'wt+', 'w+t', '+wt', 'tw+', 't+w', '+tw', 'a+', '+a', 'at+', 'a+t', '+at', 'ta+', 't+a', '+ta', 'x+', '+x', 'xt+', 'x+t', '+xt', 'tx+', 't+x', '+tx'] | Literal['w', 'wt', 'tw', 'a', 'at', 'ta', 'x', 'xt', 'tx'] | Literal['r', 'rt', 'tr', 'U', 'rU', 'Ur', 'rtU', 'rUt', 'Urt', 'trU', 'tUr', 'Utr'], buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[str]
tests/typed_entities/test_typed_entities.py:26: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: Literal['rb+', 'r+b', '+rb', 'br+', 'b+r', '+br', 'wb+', 'w+b', '+wb', 'bw+', 'b+w', '+bw', 'ab+', 'a+b', '+ab', 'ba+', 'b+a', '+ba', 'xb+', 'x+b', '+xb', 'bx+', 'b+x', '+bx'] | Literal['rb', 'br', 'rbU', 'rUb', 'Urb', 'brU', 'bUr', 'Ubr'] | Literal['wb', 'bw', 'ab', 'ba', 'xb', 'bx'] = ..., buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[bytes]
tests/typed_entities/test_typed_entities.py:26: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: str = ..., buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[Any]
tests/typed_entities/test_typed_entities.py:43: error: No overload variant of "NamedTemporaryFile" matches argument types "bool", "bool", "str"  [call-overload]
tests/typed_entities/test_typed_entities.py:43: note: Possible overload variants:
tests/typed_entities/test_typed_entities.py:43: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: Literal['r+', '+r', 'rt+', 'r+t', '+rt', 'tr+', 't+r', '+tr', 'w+', '+w', 'wt+', 'w+t', '+wt', 'tw+', 't+w', '+tw', 'a+', '+a', 'at+', 'a+t', '+at', 'ta+', 't+a', '+ta', 'x+', '+x', 'xt+', 'x+t', '+xt', 'tx+', 't+x', '+tx'] | Literal['w', 'wt', 'tw', 'a', 'at', 'ta', 'x', 'xt', 'tx'] | Literal['r', 'rt', 'tr', 'U', 'rU', 'Ur', 'rtU', 'rUt', 'Urt', 'trU', 'tUr', 'Utr'], buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[str]
tests/typed_entities/test_typed_entities.py:43: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: Literal['rb+', 'r+b', '+rb', 'br+', 'b+r', '+br', 'wb+', 'w+b', '+wb', 'bw+', 'b+w', '+bw', 'ab+', 'a+b', '+ab', 'ba+', 'b+a', '+ba', 'xb+', 'x+b', '+xb', 'bx+', 'b+x', '+bx'] | Literal['rb', 'br', 'rbU', 'rUb', 'Urb', 'brU', 'bUr', 'Ubr'] | Literal['wb', 'bw', 'ab', 'ba', 'xb', 'bx'] = ..., buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[bytes]
tests/typed_entities/test_typed_entities.py:43: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: str = ..., buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[Any]
tests/typed_entities/test_typed_entities.py:46: error: No overload variant of "NamedTemporaryFile" matches argument types "bool", "bool", "str"  [call-overload]
tests/typed_entities/test_typed_entities.py:46: note: Possible overload variants:
tests/typed_entities/test_typed_entities.py:46: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: Literal['r+', '+r', 'rt+', 'r+t', '+rt', 'tr+', 't+r', '+tr', 'w+', '+w', 'wt+', 'w+t', '+wt', 'tw+', 't+w', '+tw', 'a+', '+a', 'at+', 'a+t', '+at', 'ta+', 't+a', '+ta', 'x+', '+x', 'xt+', 'x+t', '+xt', 'tx+', 't+x', '+tx'] | Literal['w', 'wt', 'tw', 'a', 'at', 'ta', 'x', 'xt', 'tx'] | Literal['r', 'rt', 'tr', 'U', 'rU', 'Ur', 'rtU', 'rUt', 'Urt', 'trU', 'tUr', 'Utr'], buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[str]
tests/typed_entities/test_typed_entities.py:46: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: Literal['rb+', 'r+b', '+rb', 'br+', 'b+r', '+br', 'wb+', 'w+b', '+wb', 'bw+', 'b+w', '+bw', 'ab+', 'a+b', '+ab', 'ba+', 'b+a', '+ba', 'xb+', 'x+b', '+xb', 'bx+', 'b+x', '+bx'] | Literal['rb', 'br', 'rbU', 'rUb', 'Urb', 'brU', 'bUr', 'Ubr'] | Literal['wb', 'bw', 'ab', 'ba', 'xb', 'bx'] = ..., buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[bytes]
tests/typed_entities/test_typed_entities.py:46: note:     def [AnyStr: (str, bytes)] NamedTemporaryFile(mode: str = ..., buffering: int = ..., encoding: str | None = ..., newline: str | None = ..., suffix: AnyStr | None = ..., prefix: AnyStr | None = ..., dir: AnyStr | PathLike[AnyStr] | None = ..., delete: bool = ..., *, errors: str | None = ...) -> _TemporaryFileWrapper[Any]