Skip to content
Snippets Groups Projects

Draft: Fortran Support

2 files
+ 3
3
Compare changes
  • Side-by-side
  • Inline

Files

@@ -10,7 +10,7 @@ class Instruction(object):
the identifier is used, in order to reference that instruction in the Template Manager (e.g. to change it). can be None
"""
def __init__(self, str_representation: str, rank: str | int = 'all', identifier: str = None):
def __init__(self, str_representation: str, rank: str | int = 'all', identifier: str | None = None):
self._str_representation = str_representation
self._has_error = False
self._identifier = identifier
@@ -24,7 +24,7 @@ class Instruction(object):
def has_error(self):
return self._has_error
def get_identifier(self) -> str:
def get_identifier(self) -> str | None:
return self._identifier
def set_identifier(self, identifier: str):
Loading