Skip to content

Commit 09d722b

Browse files
committed
Relax typing on is_bluesky_type
get_origin returns 'Any | None' so we should accept the same
1 parent 078eb48 commit 09d722b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/blueapi/core/context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def qualified_generic_name(target: type) -> str:
103103
return f"{qualified_name(target)}{subscript}"
104104

105105

106-
def is_bluesky_type(typ: type) -> bool:
106+
def is_bluesky_type(typ: Any) -> bool:
107107
return (
108108
typ in BLUESKY_PROTOCOLS
109109
or isinstance(typ, BLUESKY_PROTOCOLS)

0 commit comments

Comments
 (0)