Skip to content

Commit

Permalink
Don't use *schema.Package in python codegen
Browse files Browse the repository at this point in the history
  • Loading branch information
iwahbe committed Dec 7, 2022
1 parent e812f69 commit 65b6b01
Show file tree
Hide file tree
Showing 8 changed files with 155 additions and 81 deletions.
4 changes: 2 additions & 2 deletions pkg/codegen/python/doc.go
Expand Up @@ -76,7 +76,7 @@ func (d DocLanguageHelper) GetDocLinkForFunctionInputOrOutputType(pkg *schema.Pa
func (d DocLanguageHelper) GetLanguageTypeString(pkg *schema.Package, moduleName string, t schema.Type, input bool) string {
typeDetails := map[*schema.ObjectType]*typeDetails{}
mod := &modContext{
pkg: pkg,
pkg: pkg.Reference(),
mod: moduleName,
typeDetails: typeDetails,
}
Expand Down Expand Up @@ -114,7 +114,7 @@ func (d DocLanguageHelper) GetMethodResultName(pkg *schema.Package, modName stri
if info.LiftSingleValueMethodReturns && m.Function.Outputs != nil && len(m.Function.Outputs.Properties) == 1 {
typeDetails := map[*schema.ObjectType]*typeDetails{}
mod := &modContext{
pkg: pkg,
pkg: pkg.Reference(),
mod: modName,
typeDetails: typeDetails,
}
Expand Down

0 comments on commit 65b6b01

Please sign in to comment.