mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2024-11-29 13:04:02 +03:00
Adding minor changes to docblocks of overriding example
This commit is contained in:
parent
244e2bcfb9
commit
bfa40aec10
|
@ -9,11 +9,7 @@ class User(object):
|
||||||
"""Example class User."""
|
"""Example class User."""
|
||||||
|
|
||||||
def __init__(self, id, password):
|
def __init__(self, id, password):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param id: int
|
|
||||||
:param password: str
|
|
||||||
"""
|
|
||||||
self.id = id
|
self.id = id
|
||||||
self.password = password
|
self.password = password
|
||||||
super(User, self).__init__()
|
super(User, self).__init__()
|
||||||
|
@ -24,10 +20,7 @@ class UserService(object):
|
||||||
"""Example class UserService."""
|
"""Example class UserService."""
|
||||||
|
|
||||||
def __init__(self, user_cls):
|
def __init__(self, user_cls):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param user_cls: User
|
|
||||||
"""
|
|
||||||
self.user_cls = user_cls
|
self.user_cls = user_cls
|
||||||
super(UserService, self).__init__()
|
super(UserService, self).__init__()
|
||||||
|
|
||||||
|
@ -63,14 +56,7 @@ class ExtendedUser(User):
|
||||||
|
|
||||||
def __init__(self, id, password, first_name=None, last_name=None,
|
def __init__(self, id, password, first_name=None, last_name=None,
|
||||||
gender=None):
|
gender=None):
|
||||||
"""Initializer.
|
"""Initializer."""
|
||||||
|
|
||||||
:param id: int
|
|
||||||
:param password: str
|
|
||||||
:param first_name: str
|
|
||||||
:param last_name: str
|
|
||||||
:param gender: str
|
|
||||||
"""
|
|
||||||
self.first_name = first_name
|
self.first_name = first_name
|
||||||
self.last_name = last_name
|
self.last_name = last_name
|
||||||
self.gender = gender
|
self.gender = gender
|
||||||
|
|
Loading…
Reference in New Issue
Block a user