Skip to content

Commit 49ef4ad

Browse files
committed
Make req() return None
1 parent a6a0fa8 commit 49ef4ad

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

shiny/_validation.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
from typing import TypeVar
21
from .types import SilentException, SilentCancelOutputException
32

4-
T = TypeVar("T")
53

6-
7-
def req(*args: T, cancel_output: bool = False) -> T:
4+
def req(*args: object, cancel_output: bool = False) -> None:
85
for arg in args:
96
if not arg:
107
if cancel_output:
118
raise SilentCancelOutputException()
129
else:
1310
raise SilentException()
14-
return args[0]

0 commit comments

Comments
 (0)