Skip to content

Commit

Permalink
Fix: mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
advance512 committed Jun 14, 2023
1 parent dc87a4b commit efcf385
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions hubspot3/crm_association_labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
hubspot crm_association_labels api
"""
from enum import Enum
from typing import List, Dict
from typing import List, Dict, Optional, Union
from hubspot3.base import BaseClient
from hubspot3.utils import get_log

Expand Down Expand Up @@ -64,13 +64,13 @@ def list(
"""
finished = False
output = []
after = ""
after: Optional[str] = ""
# 100 is max value according to docs, but "You can only request at most 500 associations at once" error

Check failure on line 68 in hubspot3/crm_association_labels.py

View workflow job for this annotation

GitHub Actions / prospector

prospector[pycodestyle:E501]: line too long (111 > 100 characters)
# is thrown
query_limit = 500

while not finished:
params = {"limit": query_limit}
params: Dict[str, Union[int, str]] = {"limit": query_limit}
if after:
params["after"] = after
batch = self._call(
Expand Down

0 comments on commit efcf385

Please sign in to comment.