Skip to content

Commit 15f5562

Browse files
committed
chore: simplify is_missing()
1 parent 7d13df9 commit 15f5562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shiny/types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class MISSING_TYPE:
5252

5353

5454
def is_missing(x: Any) -> TypeIs[MISSING_TYPE]:
55-
return x is MISSING or isinstance(x, MISSING_TYPE)
55+
return isinstance(x, MISSING_TYPE)
5656

5757

5858
# Information about a single file, with a structure like:

0 commit comments

Comments
 (0)