Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/cudaq/kernel/kernel_decorator.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(self,
# Register any external class types that may be used
# in the kernel definition
for name, var in self.globalScopedVars.items():
if isinstance(var, type):
if isinstance(var, type) and hasattr(var, '__annotations__'):
globalRegisteredTypes[name] = (var, var.__annotations__)

# Once the kernel is compiled to MLIR, we
Expand Down
Loading