Skip to content

Commit

Permalink
chore: do not pass *args to SQLALchemy DeclarativeBase class
Browse files Browse the repository at this point in the history
Signed-off-by: behnazh-w <[email protected]>
  • Loading branch information
behnazh-w committed Oct 20, 2023
1 parent 8af5007 commit c202e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macaron/database/table_definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,15 +287,15 @@ class Repository(ORMBase):
#: The path to the repo on the file system.
fs_path: Mapped[str] = mapped_column(String, nullable=False)

def __init__(self, *args: Any, files: list[str] | None = None, **kwargs: Any):
def __init__(self, files: list[str] | None = None, **kwargs: Any):
"""Instantiate the repository and set files.
Parameters
----------
files: list[str] | None
The files extracted for this repository.
"""
super().__init__(*args, **kwargs)
super().__init__(**kwargs)

# We populate the PURL type, namespace, and name columns using the complete_name.
# Because locally cloned repositories may miss the namespace, we need to check the length.
Expand Down

0 comments on commit c202e98

Please sign in to comment.