Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions erfa_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def to_python(self) -> str:

class Return(Variable):

def __init__(self, ctype, doc):
def __init__(self, ctype: str) -> None:
self.inout_state = "ret"
super().__init__(ctype)

Expand Down Expand Up @@ -335,7 +335,7 @@ def __init__(self, name, source_path):
if self.ret == "int" and self.name not in ("eraTpors", "eraTporv"):
self.args.append(StatusCode(self.ret, self.doc, name))
elif self.ret != "void":
self.args.append(Return(self.ret, self.doc))
self.args.append(Return(self.ret))

def args_by_inout(self, inout_filter):
"""
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ skip = [

[tool.ruff.lint]
extend-select = [
"ARG",
"I",
"PT",
"PTH",
Expand Down