def get_class_by_id(self, ac_id: int) -> AssetClass:
assert isinstance(ac_id, int)<EOL>for ac in self.asset_classes:<EOL><INDENT>if ac.id == ac_id:<EOL><INDENT>return ac<EOL><DEDENT><DEDENT>return None<EOL>
Finds the asset class by id