Skip to content

Commit 331ccf1

Browse files
committed
fix: Compatability with python<3.10
1 parent 2d1aa0f commit 331ccf1

File tree

1 file changed

+1
-1
lines changed
  • pybind11_stubgen/parser/mixins

1 file changed

+1
-1
lines changed

pybind11_stubgen/parser/mixins/fix.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ def parse_annotation_str(
875875
if not isinstance(result, InvalidExpression):
876876
return result
877877

878-
substitute_t = ResolvedType(self.handle_type(Any))
878+
substitute_t = self.parse_annotation_str("typing.Any")
879879
return ResolvedType(
880880
QualifiedName.from_str("typing.Annotated"),
881881
parameters=[

0 commit comments

Comments
 (0)