mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 15:10:47 +03:00
Changing comments in factory examples
This commit is contained in:
parent
0972e79130
commit
947a0667a6
|
@ -84,11 +84,7 @@ provided by another factories:
|
||||||
"""Example class User."""
|
"""Example class User."""
|
||||||
|
|
||||||
def __init__(self, main_photo):
|
def __init__(self, main_photo):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param main_photo: Photo
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
self.main_photo = main_photo
|
self.main_photo = main_photo
|
||||||
super(User, self).__init__()
|
super(User, self).__init__()
|
||||||
|
|
||||||
|
@ -147,13 +143,7 @@ So, please, follow the example below:
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, id, main_photo, credit_card):
|
def __init__(self, id, main_photo, credit_card):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param id: int
|
|
||||||
:param main_photo: Photo
|
|
||||||
:param credit_card: CreditCard
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
self.id = id
|
self.id = id
|
||||||
self.main_photo = main_photo
|
self.main_photo = main_photo
|
||||||
self.credit_card = credit_card
|
self.credit_card = credit_card
|
||||||
|
@ -391,8 +381,7 @@ Example:
|
||||||
def __init__(self, photos_factory):
|
def __init__(self, photos_factory):
|
||||||
"""Initializer.
|
"""Initializer.
|
||||||
|
|
||||||
:param photos_factory: objects.providers.Factory
|
:param photos_factory: (objects.providers.Factory) -> Photo
|
||||||
:return:
|
|
||||||
"""
|
"""
|
||||||
self.photos_factory = photos_factory
|
self.photos_factory = photos_factory
|
||||||
self._main_photo = None
|
self._main_photo = None
|
||||||
|
|
|
@ -11,8 +11,7 @@ class User(object):
|
||||||
def __init__(self, photos_factory):
|
def __init__(self, photos_factory):
|
||||||
"""Initializer.
|
"""Initializer.
|
||||||
|
|
||||||
:param photos_factory: objects.providers.Factory
|
:param photos_factory: (objects.providers.Factory) -> Photo
|
||||||
:return:
|
|
||||||
"""
|
"""
|
||||||
self.photos_factory = photos_factory
|
self.photos_factory = photos_factory
|
||||||
self._main_photo = None
|
self._main_photo = None
|
||||||
|
|
|
@ -9,11 +9,7 @@ class User(object):
|
||||||
"""Example class User."""
|
"""Example class User."""
|
||||||
|
|
||||||
def __init__(self, main_photo):
|
def __init__(self, main_photo):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param main_photo: Photo
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
self.main_photo = main_photo
|
self.main_photo = main_photo
|
||||||
super(User, self).__init__()
|
super(User, self).__init__()
|
||||||
|
|
||||||
|
|
|
@ -17,13 +17,7 @@ class User(object):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def __init__(self, id, main_photo, credit_card):
|
def __init__(self, id, main_photo, credit_card):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param id: int
|
|
||||||
:param main_photo: Photo
|
|
||||||
:param credit_card: CreditCard
|
|
||||||
:return:
|
|
||||||
"""
|
|
||||||
self.id = id
|
self.id = id
|
||||||
self.main_photo = main_photo
|
self.main_photo = main_photo
|
||||||
self.credit_card = credit_card
|
self.credit_card = credit_card
|
||||||
|
|
Loading…
Reference in New Issue
Block a user