Skip to content

Commit c8a6d0f

Browse files
committed
make pylint happy
1 parent 942229d commit c8a6d0f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

custom_components/pyscript/eval.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import keyword
1111
import logging
1212
import sys
13-
import functools
1413

1514
import yaml
1615

@@ -560,14 +559,6 @@ async def eval_decorators(self, ast_ctx):
560559
else:
561560
_LOGGER.error("function %s has unexpected decorator type %s", self.name, dec)
562561

563-
# evaluate decorator_chain_funcs here instead?
564-
# async def actual_call(*args, **kwargs):
565-
# _LOGGER.info(
566-
# 'actual_call made in %s',
567-
# self.name
568-
# )
569-
# return await self.real_call(*args, **kwargs)
570-
571562
actual_call = self.real_call
572563

573564
for dec in reversed(decorator_chain_funcs):
@@ -696,6 +687,7 @@ async def try_aeval(self, ast_ctx, arg):
696687
ast_ctx.exception_long = ast_ctx.format_exc(err, arg.lineno, arg.col_offset)
697688

698689
async def call(self, ast_ctx, *args, **kwargs):
690+
"""Call the function with decorators"""
699691
return await self.perform_call(ast_ctx, *args, **kwargs)
700692

701693
async def real_call(self, ast_ctx, *args, **kwargs):

0 commit comments

Comments
 (0)