Skip to content

Commit

Permalink
Type constraints for the list of Tasks.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Sep 21, 2023
1 parent bee43c7 commit 946f697
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octoprint_octorelay/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from typing import Optional
from typing import Optional, List
from functools import reduce
import os
import time
Expand Down Expand Up @@ -38,7 +38,7 @@ class OctoRelayPlugin(
def __init__(self):
# pylint: disable=super-init-not-called
self.polling_timer = None
self.tasks = [] # of Task
self.tasks: List[Task] = []
self.model = { index: {} for index in RELAY_INDEXES }

def get_settings_version(self):
Expand Down

0 comments on commit 946f697

Please sign in to comment.