Fix filter docs

The comments were in the wrong place
This commit is contained in:
Egor 2019-07-28 12:18:55 +03:00 committed by GitHub
parent 2aa01b3c6f
commit 8db663c218
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,14 +202,14 @@ class BoundFilter(Filter):
You need to implement ``__init__`` method with single argument related with key attribute You need to implement ``__init__`` method with single argument related with key attribute
and ``check`` method where you need to implement filter logic. and ``check`` method where you need to implement filter logic.
""" """
"""Unique name of the filter argument. You need to override this attribute."""
key = None key = None
"""If :obj:`True` this filter will be added to the all of the registered handlers""" """Unique name of the filter argument. You need to override this attribute."""
required = False required = False
"""Default value for configure required filters""" """If :obj:`True` this filter will be added to the all of the registered handlers"""
default = None default = None
"""Default value for configure required filters"""
@classmethod @classmethod
def validate(cls, full_config: typing.Dict[str, typing.Any]) -> typing.Dict[str, typing.Any]: def validate(cls, full_config: typing.Dict[str, typing.Any]) -> typing.Dict[str, typing.Any]:
""" """