Skip to content

Commit

Permalink
Release version 0.0.0.dev40
Browse files Browse the repository at this point in the history
  • Loading branch information
AAriam committed Nov 18, 2024
1 parent 179fb86 commit 3a3730e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ namespaces = true
# ----------------------------------------- Project Metadata -------------------------------------
#
[project]
version = "0.0.0.dev39"
version = "0.0.0.dev40"
name = "PySerials"
dependencies = [
"jsonschema >= 4.21.0, < 5",
Expand All @@ -26,8 +26,8 @@ dependencies = [
"ruamel.yaml >= 0.17.32, < 0.18", # https://yaml.readthedocs.io/en/stable/
"ruamel.yaml.string >= 0.1.1, < 1",
"tomlkit >= 0.11.8, < 0.12", # https://tomlkit.readthedocs.io/en/stable/,
"MDit == 0.0.0.dev36",
"ExceptionMan == 0.0.0.dev36",
"MDit == 0.0.0.dev37",
"ExceptionMan == 0.0.0.dev37",
"ProtocolMan == 0.0.0.dev2",
]
requires-python = ">=3.10"
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ jsonpath-ng >= 1.6.1, < 2
ruamel.yaml >= 0.17.32, < 0.18
ruamel.yaml.string >= 0.1.1, < 1
tomlkit >= 0.11.8, < 0.12
MDit == 0.0.0.dev36
ExceptionMan == 0.0.0.dev36
MDit == 0.0.0.dev37
ExceptionMan == 0.0.0.dev37
ProtocolMan == 0.0.0.dev2
5 changes: 4 additions & 1 deletion src/pyserials/property_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@ def setdefault(self, key, default):
return self._data.setdefault(key, default)

def __getattr__(self, name: str):
return self._data[name]
try:
return self._data[name]
except KeyError:
raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")

def __getitem__(self, name: str):
return self._data[name]
Expand Down

0 comments on commit 3a3730e

Please sign in to comment.