diff --git a/.codegen/changelog.md.tmpl b/.codegen/changelog.md.tmpl index 8ecf6b9b..c3d68817 100644 --- a/.codegen/changelog.md.tmpl +++ b/.codegen/changelog.md.tmpl @@ -39,10 +39,10 @@ Dependency updates: {{- end -}} {{- define "entity" -}} - {{- if not . }}any /* ERROR */ - {{- else if .IsEmpty}}`any` + {{- if not . }}Any /* ERROR */ + {{- else if .IsEmpty}}`Any` {{- else if .PascalName}}`databricks.sdk.service.{{.Package.Name}}.{{.PascalName}}` - {{- else if .IsAny}}`any` + {{- else if .IsAny}}`Any` {{- else if .IsString}}`str` {{- else if .IsBool}}`bool` {{- else if .IsInt64}}`int` diff --git a/.codegen/service.py.tmpl b/.codegen/service.py.tmpl index 51dd6a8f..df1119a9 100644 --- a/.codegen/service.py.tmpl +++ b/.codegen/service.py.tmpl @@ -39,7 +39,7 @@ class {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}}:{{if .Descriptio return body @classmethod - def from_dict(cls, d: Dict[str, any]) -> {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}}: + def from_dict(cls, d: Dict[str, Any]) -> {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}}: """Deserializes the {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}} from a dictionary.""" return cls({{range $i, $f := .Fields}}{{if $i}}, {{end}}{{template "safe-snake-name" $f}}={{template "from_dict_type" $f}}{{end}}) {{end}} @@ -71,7 +71,7 @@ class {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}}:{{if .Descriptio {{- else}}self.{{template "safe-snake-name" .}}{{- end -}} {{- end -}} {{- define "type" -}} - {{- if not . }}any # ERROR: No Type + {{- if not . }}Any # ERROR: No Type {{- else if .IsExternal }}{{.Package.Name}}.{{.PascalName}} {{- else if .ArrayValue }}List[{{template "type" .ArrayValue}}] {{- else if .MapValue }}Dict[str,{{template "type" .MapValue}}] @@ -85,7 +85,7 @@ class {{.PascalName}}{{if eq "List" .PascalName}}Request{{end}}:{{if .Descriptio {{- else if .IsFloat64}}float {{- else if .IsInt}}int {{- else if .IsByteStream}}BinaryIO - {{- else}}any /* MISSING TYPE */ + {{- else}}Any /* MISSING TYPE */ {{- end -}} {{- end -}}