Skip to content

Commit

Permalink
documenting new type and related_type atributes of Attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
jonrkarr committed Mar 31, 2020
1 parent cdf6a06 commit c2373d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions obj_tables/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -3069,7 +3069,7 @@ class Attribute(object, metaclass=abc.ABCMeta):
Attributes:
name (:obj:`str`): name
type (:obj:`types.TypeType`): allowed type(s) of the values of the attribute
type (:obj:`types.TypeType` or :obj:`tuple` of :obj:`types.TypeType`): allowed type(s) of the values of the attribute
init_value (:obj:`object`): initial value
default (:obj:`object`): default value
default_cleaned_value (:obj:`object`): value to replace
Expand Down Expand Up @@ -5971,7 +5971,7 @@ class RelatedAttribute(Attribute):
""" Attribute which represents a relationship with other `Model`\(s)
Attributes:
related_type (:obj:`types.TypeType`): allowed type(s) of the related values of the attribute
related_type (:obj:`types.TypeType` or :obj:`tuple` of :obj:`types.TypeType`): allowed type(s) of the related values of the attribute
primary_class (:obj:`class`): the type of the class that this related attribute references
related_class (:obj:`class`): the type of the class that contains a related attribute
related_name (:obj:`str`): name of related attribute on `related_class`
Expand Down

0 comments on commit c2373d3

Please sign in to comment.