Skip to content

Modernize - #300

Merged
masklinn merged 2 commits into
ua-parser:masterfrom
masklinn:modernize
Mar 29, 2026
Merged

Modernize#300
masklinn merged 2 commits into
ua-parser:masterfrom
masklinn:modernize

Conversation

@masklinn

Copy link
Copy Markdown
Contributor

3.9 was dropped in #285, but one mention was left in the readme, and possible modernizations were missed.

Since 3.9 was dropped in 3.9, `slots` is now usable, which means
defaults also work, meaning most of the code in the final content
dataclasses can be dropped.

While at it, enable slots on `Result` and `DefaultedResult` where it
was unset, and remove the explicit declaration on `PartialResult`.
@masklinn
masklinn enabled auto-merge (rebase) March 29, 2026 16:11
@masklinn
masklinn merged commit 3953186 into ua-parser:master Mar 29, 2026
36 checks passed
@masklinn
masklinn deleted the modernize branch March 29, 2026 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant