mirror of
https://github.com/status-im/PyGithub.git
synced 2026-08-31 19:01:15 +00:00
Be explicit about complete-ability
This commit is contained in:
@@ -24,13 +24,6 @@ for class_ in description[ "classes" ]:
|
||||
dependencies.add( thing[ "type" ][ "name" ] )
|
||||
class_[ "dependencies" ] = list( dependencies )
|
||||
|
||||
for class_ in description[ "classes" ]:
|
||||
isCompletable = False
|
||||
for attribute in class_[ "attributes" ]:
|
||||
if attribute[ "name" ] == "url":
|
||||
isCompletable = True
|
||||
class_[ "isCompletable" ] = isCompletable
|
||||
|
||||
githubObjectTemplate = django.template.loader.get_template( "GithubObject.py" )
|
||||
for class_ in description[ "classes" ]:
|
||||
with open( os.path.join( os.path.dirname( __file__ ), "..", "src", "github", class_[ "name" ] + ".py" ), "w" ) as f:
|
||||
|
||||
Reference in New Issue
Block a user