mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-07-04 20:33:13 +03:00
Fix pydocstyle errors
This commit is contained in:
parent
80565acdda
commit
bf259bb79c
|
@ -572,14 +572,17 @@ class TypeModifier(Modifier):
|
||||||
|
|
||||||
|
|
||||||
def as_int() -> TypeModifier:
|
def as_int() -> TypeModifier:
|
||||||
|
"""Return int type modifier."""
|
||||||
return TypeModifier(int)
|
return TypeModifier(int)
|
||||||
|
|
||||||
|
|
||||||
def as_float() -> TypeModifier:
|
def as_float() -> TypeModifier:
|
||||||
|
"""Return float type modifier."""
|
||||||
return TypeModifier(float)
|
return TypeModifier(float)
|
||||||
|
|
||||||
|
|
||||||
def as_(type_: Type) -> TypeModifier:
|
def as_(type_: Type) -> TypeModifier:
|
||||||
|
"""Return custom type modifier."""
|
||||||
return TypeModifier(type_)
|
return TypeModifier(type_)
|
||||||
|
|
||||||
|
|
||||||
|
@ -603,6 +606,7 @@ class RequiredModifier(Modifier):
|
||||||
|
|
||||||
|
|
||||||
def required() -> RequiredModifier:
|
def required() -> RequiredModifier:
|
||||||
|
"""Return required modifier."""
|
||||||
return RequiredModifier()
|
return RequiredModifier()
|
||||||
|
|
||||||
|
|
||||||
|
@ -612,6 +616,7 @@ class InvariantModifier(Modifier):
|
||||||
|
|
||||||
|
|
||||||
def invariant(id: str) -> InvariantModifier:
|
def invariant(id: str) -> InvariantModifier:
|
||||||
|
"""Return invariant modifier."""
|
||||||
return InvariantModifier(id)
|
return InvariantModifier(id)
|
||||||
|
|
||||||
|
|
||||||
|
@ -638,6 +643,7 @@ class ProvidedInstance(Modifier):
|
||||||
|
|
||||||
|
|
||||||
def provided() -> ProvidedInstance:
|
def provided() -> ProvidedInstance:
|
||||||
|
"""Return provided instance modifier."""
|
||||||
return ProvidedInstance()
|
return ProvidedInstance()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user