Skip to content

Commit ad9e074

Browse files
committed
changes for latest black
1 parent 4bf35cc commit ad9e074

File tree

8 files changed

+0
-14
lines changed

8 files changed

+0
-14
lines changed

docs/source/_exts/idom_example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919

2020
class WidgetExample(SphinxDirective):
21-
2221
has_content = False
2322
required_arguments = 1
2423
_next_id = 0

docs/source/_exts/idom_view.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
class IteractiveWidget(SphinxDirective):
16-
1716
has_content = False
1817
required_arguments = 1
1918
_next_id = 0

src/idom/backend/tornado.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def _setup_single_view_dispatcher_route(
158158

159159

160160
class IndexHandler(RequestHandler):
161-
162161
_index_html: str
163162

164163
def initialize(self, index_html: str) -> None:

src/idom/core/hooks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ def use_state(initial_value: _Type | Callable[[], _Type]) -> State[_Type]:
7575

7676

7777
class _CurrentState(Generic[_Type]):
78-
7978
__slots__ = "value", "dispatch"
8079

8180
def __init__(
@@ -148,11 +147,9 @@ def use_effect(
148147
last_clean_callback: Ref[Optional[_EffectCleanFunc]] = use_ref(None)
149148

150149
def add_effect(function: _EffectApplyFunc) -> None:
151-
152150
if not asyncio.iscoroutinefunction(function):
153151
sync_function = cast(_SyncEffectFunc, function)
154152
else:
155-
156153
async_function = cast(_AsyncEffectFunc, function)
157154

158155
def sync_function() -> Optional[_EffectCleanFunc]:

src/idom/core/layout.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,6 @@ class _LifeCycleState(NamedTuple):
651651

652652

653653
class _ThreadSafeQueue(Generic[_Type]):
654-
655654
__slots__ = "_loop", "_queue", "_pending"
656655

657656
def __init__(self) -> None:

src/idom/core/vdom.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@ def separate_attributes_and_event_handlers(
258258
separated_handlers: DefaultDict[str, list[EventHandlerType]] = DefaultDict(list)
259259

260260
for k, v in attributes.items():
261-
262261
handler: EventHandlerType
263262

264263
if callable(v):

tests/test_core/test_hooks.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,7 +1057,6 @@ def SomeComponent():
10571057
return idom.html.div()
10581058

10591059
async with idom.Layout(SomeComponent()) as layout:
1060-
10611060
with assert_idom_did_log(r"SomeComponent\(.*?\) message is 'hello'"):
10621061
await layout.render()
10631062

@@ -1085,7 +1084,6 @@ def SomeComponent():
10851084
return idom.html.div()
10861085

10871086
async with idom.Layout(SomeComponent()) as layout:
1088-
10891087
with assert_idom_did_log(r"SomeComponent\(.*?\) message is 'hello'"):
10901088
await layout.render()
10911089

@@ -1111,7 +1109,6 @@ def SomeComponent():
11111109
return idom.html.div()
11121110

11131111
async with idom.Layout(SomeComponent()) as layout:
1114-
11151112
with assert_idom_did_not_log(r"SomeComponent\(.*?\) message is 'hello'"):
11161113
await layout.render()
11171114

tests/test_core/test_layout.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def BadChild():
174174
raise ValueError("error from bad child")
175175

176176
with assert_idom_did_log(match_error="error from bad child"):
177-
178177
async with idom.Layout(Main()) as layout:
179178
assert (await layout.render()) == update_message(
180179
path="",
@@ -225,7 +224,6 @@ def BadChild():
225224
raise ValueError("error from bad child")
226225

227226
with assert_idom_did_log(match_error="error from bad child"):
228-
229227
async with idom.Layout(Main()) as layout:
230228
assert (await layout.render()) == update_message(
231229
path="",
@@ -754,7 +752,6 @@ def raise_error():
754752
return idom.html.button(on_click=raise_error)
755753

756754
with assert_idom_did_log(match_error="bad event handler"):
757-
758755
async with idom.Layout(ComponentWithBadEventHandler()) as layout:
759756
await layout.render()
760757
event = event_message(bad_handler.target)

0 commit comments

Comments
 (0)