Skip to content
Snippets Groups Projects
Commit db52c7b8 authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Resolve TODO's in muppet.puppet.ast.

parent 198e3bea
Branches
No related tags found
No related merge requests found
...@@ -116,7 +116,7 @@ class PuppetCall(PuppetAST): ...@@ -116,7 +116,7 @@ class PuppetCall(PuppetAST):
@dataclass @dataclass
class PuppetCallMethod(PuppetAST): class PuppetCallMethod(PuppetAST):
"""A method call? TODO.""" """A method call."""
func: PuppetAST func: PuppetAST
args: list[PuppetAST] args: list[PuppetAST]
...@@ -312,14 +312,14 @@ class PuppetParenthesis(PuppetAST): ...@@ -312,14 +312,14 @@ class PuppetParenthesis(PuppetAST):
@dataclass @dataclass
class PuppetQn(PuppetAST): class PuppetQn(PuppetAST):
"""Qn TODO.""" """Qn."""
name: str name: str
@dataclass @dataclass
class PuppetQr(PuppetAST): class PuppetQr(PuppetAST):
"""Qr TODO.""" """Qr."""
name: str name: str
...@@ -839,15 +839,15 @@ from typing import ( ...@@ -839,15 +839,15 @@ from typing import (
TypeVar, TypeVar,
Callable, Callable,
) )
import sys
F = TypeVar('F', bound=Callable[..., object]) F = TypeVar('F', bound=Callable[..., object])
# TODO replace this decorator with
# from typing import override
# once the target python version is changed to 3.12
if sys.version_info >= (3, 12):
from typing import override
else:
def override(f: F) -> F: def override(f: F) -> F:
""" """
Return function unchanged. Return function unchanged.
...@@ -856,8 +856,6 @@ def override(f: F) -> F: ...@@ -856,8 +856,6 @@ def override(f: F) -> F:
implemented in the current python version. implemented in the current python version.
""" """
return f return f
'''.lstrip()) '''.lstrip())
print('''""" print('''"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment