Skip to content

Added typehints for init methods of types and methods #1245

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

Merged
merged 4 commits into from
Aug 3, 2023

Conversation

JrooTJunior
Copy link
Member

Description

Codegenerated __init__ typehints in types and methods to make IDE happy without additional pydantic plugin

@JrooTJunior JrooTJunior added the 3.x Issue or PR for stable 3.x version label Aug 3, 2023
@JrooTJunior JrooTJunior added this to the 3.0 milestone Aug 3, 2023
@github-actions
Copy link

github-actions bot commented Aug 3, 2023

✔️ Changelog found.

Thank you for adding a description of the changes

@codecov
Copy link

codecov bot commented Aug 3, 2023

Codecov Report

Merging #1245 (dc977be) into dev-3.x (aea876d) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           dev-3.x     #1245   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          364       364           
  Lines         9215      9292   +77     
=========================================
+ Hits          9215      9292   +77     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
aiogram/types/callback_query.py 100.00% <ø> (ø)
aiogram/types/chat.py 100.00% <ø> (ø)
aiogram/types/chat_join_request.py 100.00% <ø> (ø)
aiogram/types/chat_member_updated.py 100.00% <ø> (ø)
aiogram/types/inline_query.py 100.00% <ø> (ø)
aiogram/types/sticker.py 100.00% <ø> (ø)
aiogram/types/user.py 100.00% <ø> (ø)
aiogram/methods/add_sticker_to_set.py 100.00% <100.00%> (ø)
aiogram/methods/answer_callback_query.py 100.00% <100.00%> (ø)
aiogram/methods/answer_inline_query.py 100.00% <100.00%> (ø)
... and 240 more

@JrooTJunior JrooTJunior merged commit 11dc7ea into dev-3.x Aug 3, 2023
@JrooTJunior JrooTJunior deleted the init_typehints branch August 14, 2023 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x Issue or PR for stable 3.x version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant