Skip to content

Commit

Permalink
Correct codeblock example
Browse files Browse the repository at this point in the history
Correct codeblock example to contain the correct keyword argument (from title_id to title_ids) and the type of the passed variable (from string, to list containing 1 string).
  • Loading branch information
NiccoloGranieri authored and isFakeAccount committed Dec 4, 2023
1 parent 8e402c7 commit 7f836ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/psnawp_api/models/client.py
Expand Up @@ -279,7 +279,7 @@ def trophy_titles_for_title(self, title_ids: list[str]) -> Iterator[TrophyTitle]
.. code-block:: Python
client = psnawp.me()
for trophy_title in client.trophy_titles_for_title(title_id='CUSA00265_00'):
for trophy_title in client.trophy_titles_for_title(title_ids=['CUSA00265_00']):
print(trophy_title)
"""
Expand Down
2 changes: 1 addition & 1 deletion src/psnawp_api/models/user.py
Expand Up @@ -243,7 +243,7 @@ def trophy_titles_for_title(self, title_ids: list[str]) -> Iterator[TrophyTitle]
.. code-block:: Python
user_example = psnawp.user(online_id="VaultTec_Trading")
for trophy_title in user_example.trophy_titles_for_title(title_id='CUSA00265_00'):
for trophy_title in user_example.trophy_titles_for_title(title_ids=['CUSA00265_00']):
print(trophy_title)
"""
Expand Down

0 comments on commit 7f836ed

Please sign in to comment.