Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
muppet-strings
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Hörnquist
muppet-strings
Commits
db52c7b8
Commit
db52c7b8
authored
1 year ago
by
Hugo Hörnquist
Browse files
Options
Downloads
Patches
Plain Diff
Resolve TODO's in muppet.puppet.ast.
parent
198e3bea
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
muppet/puppet/ast.py
+14
-16
14 additions, 16 deletions
muppet/puppet/ast.py
with
14 additions
and
16 deletions
muppet/puppet/ast.py
+
14
−
16
View file @
db52c7b8
...
@@ -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
(
'''"""
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment