Skip to content

Update op_pool_common.py, add missing "| None" #6421

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 2 commits into from
Oct 3, 2024
Merged

Conversation

andife
Copy link
Member

@andife andife commented Oct 3, 2024

for example

onnx/backend/test/case/node/averagepool.py
uses
pads = None

Description

Motivation and Context

for example

onnx/backend/test/case/node/averagepool.py
uses 
pads = None

Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
@andife andife requested a review from a team as a code owner October 3, 2024 10:05
Signed-off-by: Andreas Fehlner <fehlner@arcor.de>
Copy link

codecov bot commented Oct 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.22%. Comparing base (56cf02b) to head (5ed68ac).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6421   +/-   ##
=======================================
  Coverage   57.22%   57.22%           
=======================================
  Files         507      507           
  Lines       31411    31411           
  Branches     4690     4690           
=======================================
  Hits        17975    17975           
+ Misses      12581    12580    -1     
- Partials      855      856    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cyyever
Copy link
Contributor

cyyever commented Oct 3, 2024

"|None" is CPython3.10+ syntax, should we use typing.Optional[Sequence[int]] for lower CPython versions?

@andife
Copy link
Member Author

andife commented Oct 3, 2024

from future import annotations
allows to use that syntax, it's already used at other parts of the repo

@justinchuby justinchuby added this pull request to the merge queue Oct 3, 2024
Merged via the queue into main with commit 17722ff Oct 3, 2024
38 checks passed
@justinchuby justinchuby deleted the andife-patch-4 branch October 3, 2024 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants