Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
pass extra args to create project (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored Feb 17, 2023
1 parent 45ba7f7 commit 52c4881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytransifex/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ def create_project(
project_name: str | None = None,
source_language_code: str = "en_GB",
private: bool = False,
*args, # absorbing extra args
**kwargs, # absorbing extra kwargs
**kwargs,
) -> None | Resource:
"""Create a project."""
source_language = tx_api.Language.get(code=source_language_code)
Expand All @@ -65,6 +64,7 @@ def create_project(
source_language=source_language,
private=private,
organization=self.organization,
**kwargs,
)
logging.info("Project created!")
return res
Expand Down

0 comments on commit 52c4881

Please sign in to comment.