Skip to content

Commit cbb3242

Browse files
committed
lints
1 parent d6b2420 commit cbb3242

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

shiny/_app.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,17 @@
66
from contextlib import AsyncExitStack, asynccontextmanager
77
from inspect import signature
88
from pathlib import Path
9-
from typing import Any, Awaitable, Callable, Mapping, Optional, TypeVar, Union, cast
10-
from typing import Any, Callable, Literal, Mapping, Optional, TypeVar, cast
9+
from typing import (
10+
Any,
11+
Awaitable,
12+
Callable,
13+
Literal,
14+
Mapping,
15+
Optional,
16+
TypeVar,
17+
Union,
18+
cast,
19+
)
1120

1221
import starlette.applications
1322
import starlette.exceptions

shiny/_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def is_async_callable(
363363

364364

365365
def not_is_async_callable(
366-
obj: Callable[P, T] | Callable[P, Awaitable[T]]
366+
obj: Callable[P, T] | Callable[P, Awaitable[T]],
367367
) -> TypeGuard[Callable[P, T]]:
368368
return not is_async_callable(obj)
369369

shiny/express/_module.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
import functools
24
from typing import Awaitable, Callable, TypeVar, overload
35

0 commit comments

Comments
 (0)