Skip to content

Commit e89180c

Browse files
committed
refactor: Update project to pass CI linting and formatting issues
1 parent aa322ab commit e89180c

24 files changed

+33
-69
lines changed

src/workos/directory_sync.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ def list_users(
176176
after: Optional[str] = None,
177177
order: PaginationOrder = "desc",
178178
) -> DirectoryUsersListResource:
179-
180179
list_params: DirectoryUserListFilters = {
181180
"limit": limit,
182181
"before": before,
@@ -315,7 +314,6 @@ async def list_users(
315314
after: Optional[str] = None,
316315
order: PaginationOrder = "desc",
317316
) -> DirectoryUsersListResource:
318-
319317
list_params: DirectoryUserListFilters = {
320318
"limit": limit,
321319
"before": before,

src/workos/portal.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Optional, Protocol, Dict, Literal, Union
1+
from typing import Optional, Protocol
22
from workos.types.portal.portal_link import PortalLink
33
from workos.types.portal.portal_link_intent import PortalLinkIntent
44
from workos.types.portal.portal_link_intent_options import IntentOptions
@@ -36,7 +36,6 @@ def generate_link(
3636

3737

3838
class Portal(PortalModule):
39-
4039
_http_client: SyncHTTPClient
4140

4241
def __init__(self, http_client: SyncHTTPClient):

src/workos/types/fga/warnings.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
from typing import Sequence, Union, Any, Dict, Literal
2-
from typing_extensions import Annotated
1+
from typing import Any, Dict, Literal, Sequence, Union
32

43
from pydantic import BeforeValidator
54
from pydantic_core.core_schema import ValidationInfo
5+
from typing_extensions import Annotated
66

77
from workos.types.workos_model import WorkOSModel
88

@@ -12,7 +12,7 @@ class FGABaseWarning(WorkOSModel):
1212
message: str
1313

1414

15-
class MissingContextKeysWarning(FGABaseWarning):
15+
class MissingContextKeysWarning(FGABaseWarning): # type: ignore[override]
1616
code: Literal["missing_context_keys"]
1717
keys: Sequence[str]
1818

src/workos/types/mfa/authentication_factor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,21 @@ class AuthenticationFactorBase(WorkOSModel):
4343
user_id: Optional[str] = None
4444

4545

46-
class AuthenticationFactorTotp(AuthenticationFactorBase):
46+
class AuthenticationFactorTotp(AuthenticationFactorBase): # type: ignore[override]
4747
"""Representation of a MFA Authentication Factor Response as returned by WorkOS through the MFA feature."""
4848

4949
type: TotpAuthenticationFactorType
5050
totp: TotpFactor
5151

5252

53-
class AuthenticationFactorTotpExtended(AuthenticationFactorBase):
53+
class AuthenticationFactorTotpExtended(AuthenticationFactorBase): # type: ignore[override]
5454
"""Representation of a MFA Authentication Factor Response when enrolling an authentication factor."""
5555

5656
type: TotpAuthenticationFactorType
5757
totp: ExtendedTotpFactor
5858

5959

60-
class AuthenticationFactorSms(AuthenticationFactorBase):
60+
class AuthenticationFactorSms(AuthenticationFactorBase): # type: ignore[override]
6161
"""Representation of a SMS Authentication Factor Response as returned by WorkOS through the MFA feature."""
6262

6363
type: SmsAuthenticationFactorType

src/workos/types/user_management/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
from .organization_membership import *
88
from .password_hash_type import *
99
from .password_reset import *
10-
from .user_management_provider_type import *
11-
from .user import *
1210
from .session import *
11+
from .user import *
12+
from .user_management_provider_type import *

src/workos/types/user_management/session.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
from enum import Enum
2-
from typing import Optional, Sequence, TypedDict, Union
3-
4-
from typing_extensions import Literal
2+
from typing import Literal, Optional, Sequence, TypedDict, Union
53

64
from workos.types.user_management.impersonator import Impersonator
75
from workos.types.user_management.user import User

src/workos/types/workos_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def dict(
1414
by_alias: bool = False,
1515
exclude_unset: bool = False,
1616
exclude_defaults: bool = False,
17-
exclude_none: bool = False
17+
exclude_none: bool = False,
1818
) -> Dict[str, Any]:
1919
return self.model_dump(
2020
include=include,

0 commit comments

Comments
 (0)