From d4a19303b81a159beace3e5f0048fa119f53a1b1 Mon Sep 17 00:00:00 2001 From: Richard Chien Date: Tue, 3 Jul 2018 10:36:05 +0800 Subject: [PATCH] Fix code format again --- none/natural_language.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/none/natural_language.py b/none/natural_language.py index 7fe36827..8c0b3332 100644 --- a/none/natural_language.py +++ b/none/natural_language.py @@ -25,8 +25,8 @@ class NLProcessor: self.only_to_me = only_to_me -def on_natural_language(keywords: Union[Optional[Iterable], Callable] = None, *, - permission: int = perm.EVERYBODY, +def on_natural_language(keywords: Union[Optional[Iterable], Callable] = None, + *, permission: int = perm.EVERYBODY, only_to_me: bool = True) -> Callable: """ Decorator to register a function as a natural language processor. @@ -38,7 +38,8 @@ def on_natural_language(keywords: Union[Optional[Iterable], Callable] = None, *, def deco(func: Callable) -> Callable: nl_processor = NLProcessor(func=func, keywords=keywords, - permission=permission, only_to_me=only_to_me) + permission=permission, + only_to_me=only_to_me) _nl_processors.add(nl_processor) return func