MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / Person

Class Person

1d_json/python/person.py:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2
3
4class Person:
5 def __init__(self, name, age, job, verified, parents):
6 self.name = name
7 self.age = age
8 self.job = job
9 self.verified = verified
10 self.parents = parents
11
12 def __str__(self):
13 return ", ".join([f"{k}: {v}" for k, v in self.__dict__.items()])
14
15
16class MyEncoder(json.JSONEncoder):

Callers 2

decodeMethod · 0.70
person.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected