Skip to content

Commit 20e1575

Browse files
committed
fix: use import as for prioritize the modules for editors
1 parent f8f80b4 commit 20e1575

4 files changed

Lines changed: 23 additions & 20 deletions

File tree

src/joserfc/jwe.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
FlattenedJSONSerialization,
66
)
77
from .rfc7516.models import (
8-
Recipient,
9-
CompactEncryption,
10-
GeneralJSONEncryption,
11-
FlattenedJSONEncryption,
8+
Recipient as Recipient,
9+
CompactEncryption as CompactEncryption,
10+
GeneralJSONEncryption as GeneralJSONEncryption,
11+
FlattenedJSONEncryption as FlattenedJSONEncryption,
1212
JWEEncModel,
1313
JWEZipModel,
1414
)
1515
from .rfc7516.registry import (
16-
JWERegistry,
16+
JWERegistry as JWERegistry,
1717
default_registry,
1818
)
1919
from .rfc7516.message import perform_encrypt, perform_decrypt

src/joserfc/jwk.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
KeySet,
77
Key,
88
)
9-
from .rfc7518.oct_key import OctKey
10-
from .rfc7518.rsa_key import RSAKey
11-
from .rfc7518.ec_key import ECKey
12-
from .rfc8037.okp_key import OKPKey
9+
from .rfc7518.oct_key import OctKey as OctKey
10+
from .rfc7518.rsa_key import RSAKey as RSAKey
11+
from .rfc7518.ec_key import ECKey as ECKey
12+
from .rfc8037.okp_key import OKPKey as OKPKey
1313
from .rfc8812 import register_secp256k1
1414
from .registry import Header
1515

src/joserfc/jws.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
from typing import overload, TypeVar, Any, Dict
33
from .rfc7515.model import (
44
JWSAlgModel,
5-
HeaderMember,
6-
CompactSignature,
7-
GeneralJSONSignature,
8-
FlattenedJSONSignature,
5+
HeaderMember as HeaderMember,
6+
CompactSignature as CompactSignature,
7+
GeneralJSONSignature as GeneralJSONSignature,
8+
FlattenedJSONSignature as FlattenedJSONSignature,
99
)
1010
from .rfc7515.registry import (
11-
JWSRegistry,
11+
JWSRegistry as JWSRegistry,
1212
construct_registry,
1313
)
1414
from .rfc7515.compact import (
15+
extract_compact as extract_compact,
1516
sign_compact,
16-
extract_compact,
1717
verify_compact,
1818
detach_compact_content,
1919
)
@@ -27,9 +27,9 @@
2727
detach_json_content,
2828
)
2929
from .rfc7515.types import (
30-
HeaderDict,
31-
GeneralJSONSerialization,
32-
FlattenedJSONSerialization,
30+
HeaderDict as HeaderDict,
31+
GeneralJSONSerialization as GeneralJSONSerialization,
32+
FlattenedJSONSerialization as FlattenedJSONSerialization,
3333
)
3434
from .rfc7518.jws_algs import JWS_ALGORITHMS
3535
from .rfc8037.jws_eddsa import EdDSA

src/joserfc/jwt.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
from __future__ import annotations
22
import json
3-
from .rfc7519.claims import Claims, convert_claims, check_sensitive_data
4-
from .rfc7519.registry import ClaimsOption, JWTClaimsRegistry
3+
from .rfc7519.claims import convert_claims
4+
from .rfc7519.claims import Claims as Claims
5+
from .rfc7519.claims import check_sensitive_data as check_sensitive_data
6+
from .rfc7519.registry import ClaimsOption as ClaimsOption
7+
from .rfc7519.registry import JWTClaimsRegistry as JWTClaimsRegistry
58
from .jws import (
69
JWSRegistry,
710
serialize_compact,

0 commit comments

Comments
 (0)