We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6a0fa8 commit 49ef4adCopy full SHA for 49ef4ad
shiny/_validation.py
@@ -1,14 +1,10 @@
1
-from typing import TypeVar
2
from .types import SilentException, SilentCancelOutputException
3
4
-T = TypeVar("T")
5
6
-
7
-def req(*args: T, cancel_output: bool = False) -> T:
+def req(*args: object, cancel_output: bool = False) -> None:
8
for arg in args:
9
if not arg:
10
if cancel_output:
11
raise SilentCancelOutputException()
12
else:
13
raise SilentException()
14
- return args[0]
0 commit comments