Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion uplink/converters/marshmallow_.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"""

# Local imports
import importlib.metadata

from uplink import utils
from uplink.converters import interfaces, register_default_converter_factory

Expand Down Expand Up @@ -39,7 +41,7 @@ def get_users(self, username) -> UserSchema():
marshmallow = None
is_marshmallow_3 = None
else:
is_marshmallow_3 = marshmallow.__version__ >= "3.0"
is_marshmallow_3 = importlib.metadata.version("marshmallow") >= "3.0"

def __init__(self):
if self.marshmallow is None:
Expand Down
Loading
Loading