refactor: move some classes and functions to separate files

This commit is contained in:
2026-04-22 20:13:35 +06:00
parent 08cfb39ad5
commit 17d27f0605
4 changed files with 130 additions and 115 deletions

21
task6/entities.py Normal file
View File

@@ -0,0 +1,21 @@
from dataclasses import dataclass
from typing import Literal
@dataclass
class Request:
request_time: int
plane: Plane
@dataclass
class ProcessedRequest(Request):
start_process_time: int
process_time: int
type_: Literal["landing", "launching"]
class Plane:
__id_increment = 0
def __init__(self) -> None:
self.id = self.__id_increment
Plane.__id_increment += 1