gpchelkin / scdlbot

Protected member accessed from outside the class PYL-W0212
Bug risk
Minor
6 months agoa year old
Access to a protected member _pending_work_items of a client class
1354
1355async def callback_monitor(context: ContextTypes.DEFAULT_TYPE):
1356    logger.debug(f"EXECUTOR pending work items: {len(EXECUTOR._pending_work_items)} tasks remain")
1357    EXECUTOR_TASKS_REMAINING.set(len(EXECUTOR._pending_work_items))1358
1359
1360def main():
Access to a protected member _pending_work_items of a client class
1353
1354
1355async def callback_monitor(context: ContextTypes.DEFAULT_TYPE):
1356    logger.debug(f"EXECUTOR pending work items: {len(EXECUTOR._pending_work_items)} tasks remain")1357    EXECUTOR_TASKS_REMAINING.set(len(EXECUTOR._pending_work_items))
1358
1359