Skip to content

Commit

Permalink
Reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Oct 7, 2024
1 parent 48ab918 commit 6350139
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_defaultdicts.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
"""Tests for defaultdicts."""

from collections import defaultdict
from typing import DefaultDict

from cattrs import Converter


def test_typing_defaultdicts(genconverter: Converter):
"""`typing.DefaultDict` works."""
res = genconverter.structure({"a": 1}, DefaultDict[str, int])

assert isinstance(res, defaultdict)
Expand All @@ -14,6 +16,7 @@ def test_typing_defaultdicts(genconverter: Converter):


def test_collection_defaultdicts(genconverter: Converter):
"""`collections.defaultdict` works."""
res = genconverter.structure({"a": 1}, defaultdict[str, int])

assert isinstance(res, defaultdict)
Expand Down

0 comments on commit 6350139

Please sign in to comment.