Skip to content

mypy check fails in goldens-lint presubmit as of mypy 1.16.0 #2410

Open
@parthea

Description

@parthea

See the failure which appears in #2408 in this build log.

In directory tests/integration/goldens/asset, run nox -s mypy-3.13

nox > Running session mypy-3.13
nox > Creating virtual environment (virtualenv) using python3.13 in .nox/mypy-3-13
nox > python -m pip install mypy types-requests types-protobuf
nox > python -m pip install .
nox > mypy -p google
mypy.ini: [mypy]: python_version: Python 3.7 is not supported (must be 3.8 or higher)
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:103: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:139: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:185: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:221: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:257: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:293: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:329: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:365: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:401: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:447: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:493: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:529: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:565: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:611: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:647: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:683: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:719: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:755: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:791: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:837: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:873: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:909: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:955: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/transports/rest_base.py:994: note: By default the bodies of untyped functions are not checked, consider using --check-untyped-defs  [annotation-unchecked]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/client.py:3596: error: Item "None" of "Any | None" has no attribute "name"  [union-attr]
.nox/mypy-3-13/lib/python3.13/site-packages/google/cloud/asset_v1/services/asset_service/async_client.py:3196: error: Item "None" of "Any | None" has no attribute "name"  [union-attr]
Found 2 errors in 2 files (checked 20 source files)

Metadata

Metadata

Assignees

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions