diff --git a/github/GithubObject.py b/github/GithubObject.py index 09c57615..bafaa2ea 100644 --- a/github/GithubObject.py +++ b/github/GithubObject.py @@ -1,7 +1,7 @@ import itertools import ObjectCapacities.ArgumentsChecker as ArgumentsChecker -from ObjectCapacities.Basic import AttributeFromCallable, MethodFromCallable, InternalAttribute, SeveralAttributes +from ObjectCapacities.Basic import AttributeFromCallable, MethodFromCallable, InternalAttribute, SeveralAttributePolicies from ObjectCapacities.List import ExternalListOfObjects, ListGetable, ElementCreatable, ElementGetable, ElementAddable, ElementRemovable, ElementHasable, ListAddable, ListSetable, ListDeletable from ObjectCapacities.TypePolicies import SimpleTypePolicy, ObjectTypePolicy @@ -12,7 +12,7 @@ def InternalSimpleAttribute( attributeName ): return InternalAttribute( attributeName, SimpleTypePolicy() ) def InternalSimpleAttributes( *attributeNames ): - return SeveralAttributes( [ InternalSimpleAttribute( attributeName ) for attributeName in attributeNames ] ) + return SeveralAttributePolicies( [ InternalSimpleAttribute( attributeName ) for attributeName in attributeNames ] ) def InternalObjectAttribute( attributeName, type ): return InternalAttribute( attributeName, ObjectTypePolicy( type ) ) @@ -101,6 +101,6 @@ def GithubObject( className, *attributePolicies ): attributeDefinition.updateAttributes( self ) GithubObject.__name__ = className - GithubObject._addAttributePolicy( SeveralAttributes( attributePolicies ) ) + GithubObject._addAttributePolicy( SeveralAttributePolicies( attributePolicies ) ) return GithubObject diff --git a/github/ObjectCapacities/Basic.py b/github/ObjectCapacities/Basic.py index ba34c555..b6c6423d 100644 --- a/github/ObjectCapacities/Basic.py +++ b/github/ObjectCapacities/Basic.py @@ -55,7 +55,7 @@ class InternalAttribute: def apply( self, cls ): cls._addAttribute( self.__attributeName, InternalAttribute.AttributeDefinition( self.__typePolicy ) ) -class SeveralAttributes: +class SeveralAttributePolicies: def __init__( self, attributePolicies ): self.__attributePolicies = attributePolicies diff --git a/github/ObjectCapacities/List.py b/github/ObjectCapacities/List.py index c1f0bf6c..c4506742 100644 --- a/github/ObjectCapacities/List.py +++ b/github/ObjectCapacities/List.py @@ -1,6 +1,6 @@ import itertools -from Basic import SeveralAttributes +from Basic import SeveralAttributePolicies import ArgumentsChecker class ListCapacity: @@ -100,4 +100,4 @@ class ListDeletable( ListCapacity ): def ExternalListOfObjects( attributeName, type, *capacities ): for capacity in capacities: capacity.setList( attributeName, type ) - return SeveralAttributes( capacities ) + return SeveralAttributePolicies( capacities )