You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue #15 (#15).
* da/compiler/dast.py(Process):
- (.staticmethods): new field, keep track of all static methods defined in
the process.
- (.staticnames): new property, set of all static method names in the
process.
* da/compiler/parser.py(Parser):
- (.parse_decorators): check for `@staticmethod` decorators.
- (.visit_ClassDef): update for changed signature of `parse_decorators`.
- (.visit_FunctionDef): add static methods to `Process.staticmethods`;
check that entry point and "setup" methods aren't declared static.
* da/compiler/pygen.py(PythonGenerator):
- (.visit_Process): visit the `.staticmethods` field.
- (.visit_Function): don't inject `self` argument for static methods.
- (.visit_NamedVar): prepend process class name for references to static
methods.
the DistAlgo compiler adds 'self' as an argument to methods annotated with @staticmethod it shouldn't.
scott
The text was updated successfully, but these errors were encountered: