Skip to content

Convert type annotations to Python 3.10 syntax#243

Merged
loichuder merged 1 commit into
mainfrom
typing-310
Mar 16, 2026
Merged

Convert type annotations to Python 3.10 syntax#243
loichuder merged 1 commit into
mainfrom
typing-310

Conversation

@loichuder

Copy link
Copy Markdown
Member

from collections import OrderedDict
from typing import Dict
from typing import List
from typing import Annotated

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Annotated is part of typing since 3.9

@codecov

codecov Bot commented Mar 12, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 92.63158% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/ewoksserver/config.py 0.00% 6 Missing ⚠️
src/ewoksserver/__main__.py 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@woutdenolf woutdenolf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps we can come up with some regex replacement expressions for this type of stuff.

@woutdenolf

Copy link
Copy Markdown
Member
  • dict[...]: Only actual dictionaries
  • Mapping[...]: Any mapping-like object
  • Dict[...]: replaced by dict[...]

@loichuder loichuder merged commit 129a13b into main Mar 16, 2026
7 of 8 checks passed
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.

2 participants