Skip to content

Commit

Permalink
Add changelog and remove TypedDictAt38Warning
Browse files Browse the repository at this point in the history
  • Loading branch information
zhPavel committed Aug 22, 2024
1 parent 90a8eb5 commit a3d3c98
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`TypedDictAt38Warning` is removed
1 change: 1 addition & 0 deletions docs/changelog/fragments/+drop38.breaking.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Drop support of Python 3.8
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ python_files = [
'local_helpers.py',
]
testpaths = ['tests', 'examples']
filterwarnings = ['ignore::adaptix.TypedDictAt38Warning']

[tool.coverage.run]
branch = true
Expand Down
2 changes: 0 additions & 2 deletions src/adaptix/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from ._internal.common import Dumper, Loader, TypeHint
from ._internal.definitions import DebugTrail
from ._internal.model_tools.introspection.typed_dict import TypedDictAt38Warning
from ._internal.morphing.facade.func import dump, load
from ._internal.morphing.facade.provider import (
as_is_dumper,
Expand Down Expand Up @@ -73,7 +72,6 @@
"AdornedRetort",
"FilledRetort",
"Retort",
"TypedDictAt38Warning",
"Omittable",
"Omitted",
"provider",
Expand Down
12 changes: 0 additions & 12 deletions src/adaptix/_internal/model_tools/introspection/typed_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,6 @@
)


class TypedDictAt38Warning(UserWarning):
"""Runtime introspection of TypedDict at python3.8 does not support inheritance.
Please update python or consider limitations suppressing this warning
"""

def __str__(self):
return (
"Runtime introspection of TypedDict at python3.8 does not support inheritance."
" Please, update python or consider limitations suppressing this warning"
)


def _get_td_hints(tp):
elements = list(get_all_type_hints(tp).items())
elements.sort(key=lambda v: v[0])
Expand Down

0 comments on commit a3d3c98

Please sign in to comment.