MCPcopy Index your code
hub / github.com/RustPython/RustPython / _is_dunder

Function _is_dunder

Lib/typing.py:1212–1213  ·  view source on GitHub ↗
(attr)

Source from the content-addressed store, hash-verified

1210
1211
1212def _is_dunder(attr):
1213 return attr.startswith('__') and attr.endswith('__')
1214
1215class _BaseGenericAlias(_Final, _root=True):
1216 """The central part of the internal API.

Callers 3

__getattr__Method · 0.70
__setattr__Method · 0.70
__dir__Method · 0.70

Calls 2

startswithMethod · 0.45
endswithMethod · 0.45

Tested by

no test coverage detected