Skip to content

Commit e810561

Browse files
committed
Use Final for MAX_TIME_SLOTS_PER_DAY constant definition
1 parent 744c8e0 commit e810561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bsblan/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
from dataclasses import dataclass, field
88
from datetime import time
99
from enum import IntEnum
10-
from typing import Any
10+
from typing import Any, Final
1111

1212
from mashumaro.mixins.json import DataClassJSONMixin
1313

1414
from bsblan.constants import TEMPERATURE_UNITS
1515

1616
# Maximum number of time slots per day supported by BSB-LAN
17-
MAX_TIME_SLOTS_PER_DAY = 3
17+
MAX_TIME_SLOTS_PER_DAY: Final[int] = 3
1818

1919

2020
@dataclass

0 commit comments

Comments
 (0)