From c2bd45ad560f41225fc10f5f5475aba1ace7d25d Mon Sep 17 00:00:00 2001 From: mryouse Date: Sun, 26 Jun 2022 00:51:02 +0000 Subject: add return type annotations (just decoration now) --- neb/structs.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'neb/structs.py') 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] -- cgit v1.2.3