Skip to content

Commit

Permalink
fix: mypy fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveitaly committed Oct 18, 2023
1 parent 8a5fb0b commit 33314b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions netsuite/soap_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def __init__(
self,
config: Config,
*,
version: str = None,
wsdl_url: str = None,
cache: zeep.cache.Base = None,
version: Optional[str] = None,
wsdl_url: Optional[str] = None,
cache: Optional[zeep.cache.Base] = None,
) -> None:
self._ensure_required_dependencies()
if version is not None:
Expand Down Expand Up @@ -394,7 +394,7 @@ async def getList(
extract=lambda resp: resp["record"],
)
async def get(
self, recordType: str, *, internalId: int = None, externalId: str = None
self, recordType: str, *, internalId: Optional[int] = None, externalId: Optional[str] = None
) -> zeep.xsd.CompoundValue:
"""Get a single record"""
if len([v for v in (internalId, externalId) if v is not None]) != 1:
Expand Down Expand Up @@ -480,7 +480,7 @@ async def getItemAvailability(
*,
internalIds: Optional[Sequence[int]] = None,
externalIds: Optional[Sequence[str]] = None,
lastQtyAvailableChange: datetime = None,
lastQtyAvailableChange: Optional[datetime] = None,
) -> List[Dict]:
if internalIds is None:
internalIds = []
Expand Down
6 changes: 3 additions & 3 deletions netsuite/soap_api/decorators.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from functools import wraps
from typing import Any, Callable
from typing import Optional, Any, Callable

from .. import constants
from . import zeep
Expand All @@ -9,8 +9,8 @@


def WebServiceCall(
path: str = None,
extract: Callable = None,
path: Optional[str] = None,
extract: Optional[Callable] = None,
*,
default: Any = constants.NOT_SET,
) -> Callable:
Expand Down

0 comments on commit 33314b4

Please sign in to comment.