blob: f5065a3f0d29f058fb3e30997ac9122e0d13dd90 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
from mmi2grpc._description import format_function
class ProfileProxy:
def interact(self, id: str, test: str, description: str, pts_addr: bytes):
try:
return getattr(self, id)(
test=test, description=description, pts_addr=pts_addr)
except AttributeError:
code = format_function(id, description)
assert False, f'Unhandled mmi {id}\n{code}'
|