Skip to content

Commit

Permalink
f-string fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Nilsson committed Nov 27, 2023
1 parent 9a47af3 commit 7d69125
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pilot/info/infoservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class InfoService:

cache_time = 60 # default cache time in seconds

def require_init(self, func: Any) -> Any: # noqa
# add instruction to pyling to prevent it from giving the wrong error message. require_init() is a method decorator
# and not a class method. pylint will otherwise suggest to add self as first argument to the method.
# pylint: disable=no-self-argument
def require_init(func: Any) -> Any: # noqa
"""
Check if object is initialized.
Expand All @@ -65,6 +68,7 @@ def require_init(self, func: Any) -> Any: # noqa
"""
key = 'pandaqueue'

# pylint: disable=not-callable
def inner(self, *args: Any, **kwargs: dict) -> Any:
"""
Inner function.
Expand Down

0 comments on commit 7d69125

Please sign in to comment.