This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @dataclass | |
| class Application: | |
| name: str | |
| requirements: List[Requirement] | |
| constraints: Dict[str, str] = field(default_factory=dict) | |
| path: str = '' | |
| executable_links: List[str] = field(default_factory=list) | |
| executable_dir: Tuple[str] = () | |
| additional_items: List[str] = field(init=False, default_factory=list) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Application: | |
| def __init__(self, name, requirements, constraints=None, path='', executable_links=None, executables_dir=()): | |
| self.name = name | |
| self.requirements = requirements | |
| self.constraints = {} if constraints is None else constraints | |
| self.path = path | |
| self.executable_links = [] if executable_links is None else executable_links | |
| self.executables_dir = executables_dir | |
| self.additional_items = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def foo(self): | |
| perform method operation | |
| foo = classmethod(foo) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <classmethod> | |
| def foo(arg1,arg2): | |
| pass | |
| <accepts(int,int), returns(float)> | |
| def bar(low,high): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [classmethod] | |
| def foo(arg1,arg2): | |
| pass | |
| [accepts(int,int), returns(float)] | |
| def bar(low,high): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| |classmethod | |
| def foo(arg1,arg2): | |
| pass | |
| |accepts(int,int) | |
| |returns(float) | |
| def bar(low,high): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def foo(arg1,arg2): | |
| @classmethod | |
| """ | |
| foo docstring | |
| """ | |
| pass | |
| def bar(low,high): | |
| @accepts(int,int) | |
| @returns(float) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def foo(arg1,arg2) @classmethod: | |
| pass | |
| def bar(low,high) @accepts(int,int),@returns(float): | |
| pass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def @classmethod foo(arg1,arg2): | |
| pass | |
| def @accepts(int,int),@returns(float) bar(low,high): | |
| pass | |
| def foo @classmethod (arg1,arg2): | |
| pass | |
| def bar @accepts(int,int),@returns(float) (low,high): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @classmethod | |
| def foo(arg1,arg2): | |
| pass | |
| @accepts(int,int) | |
| @returns(float) | |
| def bar(low,high): | |
| pass |