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

Class Some

Lib/test/test_enum.py:3261–3265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3259 def test_value_backup_assign(self):
3260 # check that enum will add missing values when custom __new__ does not
3261 class Some(Enum):
3262 def __new__(cls, val):
3263 return object.__new__(cls)
3264 x = 1
3265 y = 2
3266 self.assertEqual(Some.x.value, 1)
3267 self.assertEqual(Some.y.value, 2)
3268

Callers 15

bench_cpython_codeFunction · 0.50
bench_rustpython_codeFunction · 0.50
shell_execFunction · 0.50
get_importerFunction · 0.50
run_rustpythonFunction · 0.50
write_profileFunction · 0.50
parse_argsFunction · 0.50
parse_optsFunction · 0.50
set_frozen_stdlib_dirFunction · 0.50
setup_dynamic_stdlibFunction · 0.50
split_idents_on_dotFunction · 0.50

Calls

no outgoing calls