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

Class Manager

Lib/test/test_coroutines.py:1214–1228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1212
1213 def test_with_1(self):
1214 class Manager:
1215 def __init__(self, name):
1216 self.name = name
1217
1218 async def __aenter__(self):
1219 await AsyncYieldFrom(['enter-1-' + self.name,
1220 'enter-2-' + self.name])
1221 return self
1222
1223 async def __aexit__(self, *args):
1224 await AsyncYieldFrom(['exit-1-' + self.name,
1225 'exit-2-' + self.name])
1226
1227 if self.name == 'B':
1228 return True
1229
1230
1231 async def foo():

Callers 3

fooMethod · 0.70
test_for_6Method · 0.70
mainMethod · 0.70

Calls

no outgoing calls

Tested by 3

fooMethod · 0.56
test_for_6Method · 0.56
mainMethod · 0.56