MCPcopy Index your code
hub / github.com/python/mypy / isproperty

Function isproperty

mypy/server/objgraph.py:35–36  ·  view source on GitHub ↗
(o: object, attr: str)

Source from the content-addressed store, hash-verified

33
34
35def isproperty(o: object, attr: str) -> bool:
36 return isinstance(getattr(type(o), attr, None), property)
37
38
39def get_edge_candidates(o: object) -> Iterator[tuple[object, object]]:

Callers 1

get_edge_candidatesFunction · 0.85

Calls 3

isinstanceFunction · 0.85
getattrFunction · 0.85
typeClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…