Files
d2warehouse/d2warehouse/stash.py
omicron 4a57291ba0 Fix several issues revealed by testing and static analysis
- Fix type annotations in d2warehouse.stash
- Fix invalid escape sequences in d2warehouse.item
- Bump the minimum supported version of python to 3.10
- Fix ambiguous variable name in d2warehouse.huffman
2023-10-24 01:29:58 +02:00

30 lines
1023 B
Python

# Copyright 2023 <omicron.me@protonmail.com>
# Copyright 2023 <andreasruden91@gmail.com>
#
# This file is part of d2warehouse.
#
# d2warehouse is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version.
#
# d2warehouse is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# Mercator. If not, see <https://www.gnu.org/licenses/>.
from d2warehouse.item import Item
class Stash:
def __init__(self) -> None:
self.tabs: list[StashTab] = []
class StashTab:
def __init__(self) -> None:
self.gold: int = 0
self.item_data: bytes = b""
self.items: list[Item] = []