From 6630531e1cd387d6c2417bc81e117613ee222076 Mon Sep 17 00:00:00 2001 From: dpdani Date: Thu, 26 Oct 2023 16:54:33 +0200 Subject: [PATCH] black --- src/cereggii/atomic_dict/__init__.py | 2 ++ tests/test_atomic_dict.py | 19 ++++++++++++------- 2 files changed, 14 insertions(+), 7 deletions(-) diff --git a/src/cereggii/atomic_dict/__init__.py b/src/cereggii/atomic_dict/__init__.py index ca81044f..62ff7c2f 100644 --- a/src/cereggii/atomic_dict/__init__.py +++ b/src/cereggii/atomic_dict/__init__.py @@ -9,9 +9,11 @@ try: from cereggii import _atomic_dict except ImportError: # building sdist (without compiled modules) + class AtomicDict: def __init__(self): print("dummy") + else: AtomicDict = _atomic_dict.AtomicDict diff --git a/tests/test_atomic_dict.py b/tests/test_atomic_dict.py index 0ff5c41b..790e97b4 100644 --- a/tests/test_atomic_dict.py +++ b/tests/test_atomic_dict.py @@ -8,14 +8,19 @@ def test_init(): AtomicDict() - AtomicDict({ - "spam": 42, - 3: 4, - }) + AtomicDict( + { + "spam": 42, + 3: 4, + } + ) AtomicDict(spam=42, cheese=True) - AtomicDict({ - "bird": "norwegian blue", - }, bird="spam") + AtomicDict( + { + "bird": "norwegian blue", + }, + bird="spam", + ) AtomicDict(initial_size=120)