mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-07 07:00:49 +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."""
|
||||
|
||||
def __init__(self, main_photo):
|
||||
"""Initializer.
|
||||
|
||||
:param main_photo: Photo
|
||||
:return:
|
||||
"""
|
||||
"""Initializer."""
|
||||
self.main_photo = main_photo
|
||||
super(User, self).__init__()
|
||||
|
||||
|
@ -147,13 +143,7 @@ So, please, follow the example below:
|
|||
"""
|
||||
|
||||
def __init__(self, id, main_photo, credit_card):
|
||||
"""Initializer.
|
||||
|
||||
:param id: int
|
||||
:param main_photo: Photo
|
||||
:param credit_card: CreditCard
|
||||
:return:
|
||||
"""
|
||||
"""Initializer."""
|
||||
self.id = id
|
||||
self.main_photo = main_photo
|
||||
self.credit_card = credit_card
|
||||
|
@ -391,8 +381,7 @@ Example:
|
|||
def __init__(self, photos_factory):
|
||||
"""Initializer.
|
||||
|
||||
:param photos_factory: objects.providers.Factory
|
||||
:return:
|
||||
:param photos_factory: (objects.providers.Factory) -> Photo
|
||||
"""
|
||||
self.photos_factory = photos_factory
|
||||
self._main_photo = None
|
||||
|
|
|
@ -11,8 +11,7 @@ class User(object):
|
|||
def __init__(self, photos_factory):
|
||||
"""Initializer.
|
||||
|
||||
:param photos_factory: objects.providers.Factory
|
||||
:return:
|
||||
:param photos_factory: (objects.providers.Factory) -> Photo
|
||||
"""
|
||||
self.photos_factory = photos_factory
|
||||
self._main_photo = None
|
||||
|
|
|
@ -9,11 +9,7 @@ class User(object):
|
|||
"""Example class User."""
|
||||
|
||||
def __init__(self, main_photo):
|
||||
"""Initializer.
|
||||
|
||||
:param main_photo: Photo
|
||||
:return:
|
||||
"""
|
||||
"""Initializer."""
|
||||
self.main_photo = main_photo
|
||||
super(User, self).__init__()
|
||||
|
||||
|
|
|
@ -17,13 +17,7 @@ class User(object):
|
|||
"""
|
||||
|
||||
def __init__(self, id, main_photo, credit_card):
|
||||
"""Initializer.
|
||||
|
||||
:param id: int
|
||||
:param main_photo: Photo
|
||||
:param credit_card: CreditCard
|
||||
:return:
|
||||
"""
|
||||
"""Initializer."""
|
||||
self.id = id
|
||||
self.main_photo = main_photo
|
||||
self.credit_card = credit_card
|
||||
|
|
Loading…
Reference in New Issue
Block a user