Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop 3.8 support #1604

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Drop 3.8 support #1604

wants to merge 6 commits into from

Conversation

sydney-runkle
Copy link
Member

Paired with pydantic/pydantic#11258 on the pydantic end

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

tests/conftest.py Outdated Show resolved Hide resolved
tests/validators/test_tuple.py Outdated Show resolved Hide resolved
return {
'type': 'dict',
'keys_schema': get_schema(obj.__args__[0], definitions),
'values_schema': get_schema(obj.__args__[1], definitions),
}
elif issubclass(origin, Type):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right?

Copy link
Member

@Viicos Viicos Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is documented in Python, but typing.* aliases define __subclasscheck__ so this works as expected. Still, using the builtin type is way cleaner.

Copy link

codspeed-hq bot commented Jan 21, 2025

CodSpeed Performance Report

Merging #1604 will not alter performance

Comparing drop-3-8-support (7ba7714) with main (e572f55)

Summary

✅ 157 untouched benchmarks

Copy link
Contributor

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Very diligent to go clean up all the type hints too :)

@@ -101,6 +100,7 @@ features = ["pyo3/extension-module"]

[tool.ruff]
line-length = 120
target-version = 'py39'

[tool.ruff.lint]
extend-select = ['Q', 'RUF100', 'C90', 'I']
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add pyupgrade?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants