Skip to content

Commit

Permalink
add dependency import
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Mar 5, 2024
1 parent 8b73783 commit 1819b52
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/generators/python/PythonConstrainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ export const PythonDefaultTypeMapping: PythonTypeMapping = {
Reference({ constrainedModel }): string {
return constrainedModel.name;
},
Any(): string {
Any({ dependencyManager }): string {
dependencyManager.addDependency('from typing import Any');
return 'Any';
},
Float(): string {
Expand Down

0 comments on commit 1819b52

Please sign in to comment.