MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _is_descriptor

Function _is_descriptor

tools/python-3.11.9-amd64/Lib/enum.py:38–46  ·  view source on GitHub ↗

Returns True if obj is a descriptor, False otherwise.

(obj)

Source from the content-addressed store, hash-verified

36 self.value = value
37
38def _is_descriptor(obj):
39 """
40 Returns True if obj is a descriptor, False otherwise.
41 """
42 return (
43 hasattr(obj, '__get__') or
44 hasattr(obj, '__set__') or
45 hasattr(obj, '__delete__')
46 )
47
48def _is_dunder(name):
49 """

Callers 2

__setitem__Method · 0.85
convert_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected