Skip to content

cached_property not type checked correctly #1758

@ilitzroth

Description

@ilitzroth

Describe the Bug

import podman

def test2() -> None:
    pc =  podman.PodmanClient(
        base_url="",
        identity="",
    )
    for _container in pc.containers.list():
        pass

this gives an error:

ERROR Object of class cached_property has no attribute list
Object of class property has no attribute list [missing-attribute]
--> tmp.py:9:23
|
9 | for _container in pc.containers.list():
| ^^^^^^^^^^^^^^^^^^

other typecheckers give no such error(ty, mypy). this requires an install of podman>="5.0.0" to reproduce

Sandbox Link

No response

(Only applicable for extension issues) IDE Information

No response

Metadata

Metadata

Assignees

Labels

UserBugs reported by external users that should be prioritisedtypechecking

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions