Skip to content

Commit fafc3d8

Browse files
Annhiluccopybara-github
authored andcommitted
chore: Add type assertions and ignore type overlap in genai libraries
PiperOrigin-RevId: 869769923
1 parent af40cc6 commit fafc3d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/genai/_interactions/_utils/_compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def is_union(tp: Optional[Type[Any]]) -> bool:
4242
else:
4343
import types
4444

45-
return tp is Union or tp is types.UnionType
45+
return tp is Union or tp is types.UnionType # type: ignore[comparison-overlap]
4646

4747

4848
def is_typeddict(tp: Type[Any]) -> bool:

0 commit comments

Comments
 (0)