Skip to content

Add TypedEntitySchema #144

Add TypedEntitySchema

Add TypedEntitySchema #144

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:27: error: No overload variant of "NamedTemporaryFile" matches argument types "str", "bool", "bool"  [call-overload]
tests/typed_entities/test_typed_entities.py:27: note: Possible overload variants:
tests/typed_entities/test_typed_entities.py:27: 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:27: 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:27: 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:44: error: No overload variant of "NamedTemporaryFile" matches argument types "bool", "bool", "str"  [call-overload]
tests/typed_entities/test_typed_entities.py:44: note: Possible overload variants:
tests/typed_entities/test_typed_entities.py:44: 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:44: 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:44: 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:47: error: No overload variant of "NamedTemporaryFile" matches argument types "bool", "bool", "str"  [call-overload]
tests/typed_entities/test_typed_entities.py:47: note: Possible overload variants:
tests/typed_entities/test_typed_entities.py:47: 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:47: 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:47: 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]