Skip to content

Commit 99d5d51

Browse files
committed
fix: Copilot issues
1 parent 2177b48 commit 99d5d51

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

‎crowdin_api/api_resources/glossaries/tests/test_glossaries_resources.py‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,22 @@ def test_get_glossary_export_path(self, in_params, path, base_absolut_url):
242242
"languageIds": ["uk", "de"],
243243
},
244244
),
245+
(
246+
{
247+
"status": GlossaryExportStatus.PREFERRED,
248+
"partOfSpeech": GlossaryExportPartOfSpeech.NOUN,
249+
"type": GlossaryExportTermType.ACRONYM,
250+
"gender": GlossaryExportGender.MASCULINE,
251+
"authorId": 12,
252+
},
253+
{
254+
"status": GlossaryExportStatus.PREFERRED,
255+
"partOfSpeech": GlossaryExportPartOfSpeech.NOUN,
256+
"type": GlossaryExportTermType.ACRONYM,
257+
"gender": GlossaryExportGender.MASCULINE,
258+
"authorId": 12,
259+
},
260+
),
245261
),
246262
)
247263
@mock.patch("crowdin_api.requester.APIRequester.request")

‎crowdin_api/api_resources/glossaries/types.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class GlossarySchemaRequest(TypedDict):
3131
genders: Optional[Iterable[GlossaryExportGender]]
3232
authorIds: Optional[Iterable[int]]
3333
languageIds: Optional[Iterable[str]]
34+
# Deprecated in favor of the plural filters above; the API rejects requests combining a
35+
# singular filter with its plural counterpart.
36+
status: Optional[GlossaryExportStatus]
37+
partOfSpeech: Optional[GlossaryExportPartOfSpeech]
38+
type: Optional[GlossaryExportTermType]
39+
gender: Optional[GlossaryExportGender]
40+
authorId: Optional[int]
3441

3542

3643
class TermPatchRequest(TypedDict):

0 commit comments

Comments
 (0)