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

Modernize type hints #46

Merged
merged 1 commit into from
May 3, 2023
Merged

Modernize type hints #46

merged 1 commit into from
May 3, 2023

Conversation

hramezani
Copy link
Member

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented May 3, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (45f63f9) 95.37% compared to head (e306831) 95.37%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #46   +/-   ##
=======================================
  Coverage   95.37%   95.37%           
=======================================
  Files           5        5           
  Lines         303      303           
  Branches       78       78           
=======================================
  Hits          289      289           
  Misses         12       12           
  Partials        2        2           
Impacted Files Coverage Δ
pydantic_settings/main.py 100.00% <100.00%> (ø)
pydantic_settings/sources.py 95.34% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@samuelcolvin
Copy link
Member

You can automate this with ruff, is that what you're doing?

target_field: Optional[FieldInfo] = field

target_field: FieldInfo | None = field
print(keys, last_key, target_field)
Copy link
Member

@Kludex Kludex May 3, 2023

Choose a reason for hiding this comment

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

.>:)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed :)

@hramezani hramezani merged commit 4d0a83e into pydantic:main May 3, 2023
18 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.

None yet

4 participants