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

Function _is_sunder

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

Returns True if a _sunder_ name, False otherwise.

(name)

Source from the content-addressed store, hash-verified

57 )
58
59def _is_sunder(name):
60 """
61 Returns True if a _sunder_ name, False otherwise.
62 """
63 return (
64 len(name) > 2 and
65 name[0] == name[-1] == '_' and
66 name[1:2] != '_' and
67 name[-2:-1] != '_'
68 )
69
70def _is_internal_class(cls_name, obj):
71 # do not use `re` as `re` imports `enum`

Callers 2

__setitem__Method · 0.85
convert_classFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected