Files
kadastr14/models/cadastral_record.py

15 lines
474 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
Модель для хранения информации о кадастровом номере.
"""
class CadastralRecord:
def __init__(self, number: str, file_path: str):
self.number = number
self.file_path = file_path
def __str__(self):
return f"Кадастровый номер: {self.number}, файл: {self.file_path}"
def __repr__(self):
return f"CadastralRecord('{self.number}', '{self.file_path}')"