Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Resolve mypy reported issues #243

Open
andreas-el opened this issue May 2, 2023 · 1 comment
Open

Resolve mypy reported issues #243

andreas-el opened this issue May 2, 2023 · 1 comment

Comments

@andreas-el
Copy link
Contributor

Resolve github action typechecking reported issues:

  mypy -p ert_storage --ignore-missing-imports --disallow-untyped-defs --show-error-codes --exclude _alembic --exclude testing
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/3.8.16/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.16/x64/lib
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/server.py:11: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/server.py:11: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/database_schema/record_info.py:41: error: Need type annotation for "record_type"  [var-annotated]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/database_schema/record_info.py:42: error: Need type annotation for "record_class"  [var-annotated]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/database_schema/prior.py:37: error: Need type annotation for "function"  [var-annotated]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:12: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:12: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:15: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:20: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:27: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:42: error: Session? has no attribute "add_all"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:44: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:51: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:51: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:54: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:61: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/updates.py:61: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/responses.py:17: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/responses.py:17: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/responses.py:19: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/responses.py:21: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:17: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:17: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:19: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:21: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:34: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:35: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:44: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:44: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:46: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:54: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:54: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:56: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:73: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:73: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:80: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:82: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:88: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:88: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:95: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:98: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:104: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:104: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:110: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:120: error: Invalid index type "Column[str]" for "Mapping[str, Any]"; expected type "str"  [index]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:123: error: Invalid index type "Column[str]" for "Mapping[str, Any]"; expected type "str"  [index]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/observations.py:124: error: Invalid index type "Column[str]" for "Mapping[str, Any]"; expected type "str"  [index]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:28: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:28: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:30: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:36: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:36: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:38: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:45: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:45: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:51: error: Session? has no attribute "add_all"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:62: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:63: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:71: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:71: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:73: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:79: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:79: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:86: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:88: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:94: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:94: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:101: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:104: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:110: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:110: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:116: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:121: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:121: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:122: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:123: error: Session? has no attribute "delete"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:124: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/experiments.py:144: error: Invalid index type "Column[Any]" for "Mapping[PriorFunction, Union[Type[PriorConst], Type[PriorTrig], Type[PriorNormal], Type[PriorLogNormal], Type[PriorErtTruncNormal], Type[PriorStdNormal], Type[PriorUniform], Type[PriorErtDUniform], Type[PriorLogUniform], Type[PriorErtErf], Type[PriorErtDErf]]]"; expected type "PriorFunction"  [index]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:15: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:15: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:17: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:42: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:45: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:47: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:53: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:53: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:54: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:60: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:60: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:67: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:69: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:75: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:75: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:82: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:85: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:91: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:91: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/ensembles.py:97: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/compute/misfits.py:28: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/compute/misfits.py:28: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/compute/misfits.py:39: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:25: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:25: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:51: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:72: error: List comprehension has incompatible type List[Column[bytes]]; expected List[Union[bytes, array[Any], mmap, _CData, PickleBuffer]]  [misc]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:136: error: Argument "key" to "sorted" has incompatible type "Callable[[FileBlock], Column[int]]"; expected "Callable[[FileBlock], Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]]"  [arg-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:136: error: Incompatible return value type (got "Column[int]", expected "Union[SupportsDunderLT[Any], SupportsDunderGT[Any]]")  [return-value]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:159: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:159: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:174: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:174: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/_records_blob.py:184: error: Argument "realization_index" to "BlobHandler" has incompatible type "Column[int]"; expected "Optional[int]"  [arg-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:46: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:46: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:53: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:66: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:82: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:82: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:88: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:98: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:110: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:126: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:126: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:134: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:137: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:170: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:170: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:180: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:180: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:197: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:207: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:207: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:222: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:222: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:231: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:237: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:237: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:251: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:251: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:259: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:276: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:276: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:346: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:346: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:354: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:360: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:360: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:369: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:382: error: Incompatible return value type (got "Column[Any]", expected "Mapping[str, Any]")  [return-value]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:388: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:388: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:393: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:397: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:405: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:405: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:505: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:505: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:553: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:553: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:571: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:588: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:588: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:590: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:595: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:617: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:617: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:622: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:632: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:632: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:633: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:639: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:639: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:649: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:662: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:662: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:667: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:760: error: Variable "ert_storage.database.Session" is not valid as a type  [valid-type]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:760: note: See https://mypy.readthedocs.io/en/stable/common_issues.html#variables-vs-type-aliases
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:763: error: Session? has no attribute "begin_nested"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:765: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:766: error: Session? has no attribute "commit"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:774: error: Session? has no attribute "query"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:799: error: Session? has no attribute "add"  [attr-defined]
/opt/hostedtoolcache/Python/3.8.16/x64/lib/python3.8/site-packages/ert_storage/endpoints/records.py:800: error: Session? has no attribute "commit"  [attr-defined]
Found 134 errors in 11 files (checked 42 source files)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants