Skip to content

Commit

Permalink
updated pyi file
Browse files Browse the repository at this point in the history
  • Loading branch information
calbaker committed Jun 28, 2024
1 parent 80b8d5e commit 596795a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions python/altrios/altrios_pyo3.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ from dataclasses import dataclass

class SerdeAPI(object):
@classmethod
def from_bincode(cls) -> Self: ...
def from_bincode(cls, bincode_str: str) -> Self: ...
@classmethod
def from_json(cls) -> Self: ...
def from_json(cls, json_str: str) -> Self: ...
@classmethod
def from_yaml(cls) -> Self: ...
def from_yaml(cls, yaml_str: str) -> Self: ...
@classmethod
def from_file(cls, filename: Path) -> Self: ...
@classmethod
def from_file(cls) -> Self: ...
def to_file(self): ...
def from_str(cls, contents: str, format: str) -> Self: ...
def to_str(self, format:str) -> str: ...
def to_file(self, filename: Path): ...
def to_bincode(self) -> bytes: ...
def to_json(self) -> str: ...
def to_yaml(self) -> str: ...
Expand Down Expand Up @@ -1061,7 +1064,8 @@ class Network(SerdeAPI):
def __len__(self) -> Any: ...
def __setitem__(self, index, object) -> Any: ...
def set_speed_set_for_train_type(self, train_type: TrainType): ...

@classmethod
def from_file_unchecked(cls, filename: Path) -> Self: ...

@dataclass
class LinkPath(SerdeAPI):
Expand Down

0 comments on commit 596795a

Please sign in to comment.