diff options
| author | mryouse | 2022-06-26 00:51:02 +0000 |
|---|---|---|
| committer | mryouse | 2022-06-26 00:51:02 +0000 |
| commit | c2bd45ad560f41225fc10f5f5475aba1ace7d25d (patch) | |
| tree | 4f2565aecfc2d69458736c2d308a04d0823a8a05 /neb/structs.py | |
| parent | 35910fa0ce5ecaa8888c3fd5a0f45ea38b9efbe3 (diff) | |
add return type annotations (just decoration now)
Diffstat (limited to 'neb/structs.py')
| -rw-r--r-- | neb/structs.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/neb/structs.py b/neb/structs.py index fcfa430..f6bd3af 100644 --- a/neb/structs.py +++ b/neb/structs.py @@ -126,9 +126,7 @@ class Arg: self.lazy = lazy def __str__(self): - opt = "?" if self.optional else "" - lazy = "~" if self.lazy else "" - return f"{lazy}{opt}{self.name} {self.type_}" + return f"{self.name} {self.type_}" def string_args(args, many): out = [f"{arg}" for arg in args] |
