13 lines
181 B
Python
13 lines
181 B
Python
from dataclasses import dataclass
|
|
from typing import Self
|
|
|
|
|
|
@dataclass
|
|
class Game:
|
|
name: str
|
|
year: int
|
|
|
|
# НАХ?
|
|
def get_name(self: Self):
|
|
return self.name
|