Skip to content

Commit 5847c58

Browse files
authored
chore: do not pass *args to SQLALchemy DeclarativeBase class (#511)
Signed-off-by: behnazh-w <[email protected]>
1 parent a78120b commit 5847c58

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/macaron/database/table_definitions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,15 @@ class Repository(ORMBase):
287287
#: The path to the repo on the file system.
288288
fs_path: Mapped[str] = mapped_column(String, nullable=False)
289289

290-
def __init__(self, *args: Any, files: list[str] | None = None, **kwargs: Any):
290+
def __init__(self, files: list[str] | None = None, **kwargs: Any):
291291
"""Instantiate the repository and set files.
292292
293293
Parameters
294294
----------
295295
files: list[str] | None
296296
The files extracted for this repository.
297297
"""
298-
super().__init__(*args, **kwargs)
298+
super().__init__(**kwargs)
299299

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

0 commit comments

Comments
 (0)