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

pass extra args to create project #16

Merged
merged 2 commits into from
Feb 17, 2023
Merged
Changes from 1 commit
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 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