Closed XuehaiPan closed 11 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
442fecc
) 100.00% compared to head (0467bb7
) 100.00%. Report is 1 commits behind head on main.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Description
Describe your changes in detail.
Move the
PyStructSequence
check before thenamedtuple
check.Motivation and Context
Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. You can use the syntax
close #15213
if this solves the issue #15213The
PyStructSequence
types will be more similar to thenamedtuple
types in the future. It's hard to distinguish these two types if thePyStructSequence
types will have_fields
attributes.This PR moves the
PyStructSequence
type check before thenamedtuple
type check.Checklist
Go over all the following points, and put an
x
in all the boxes that apply. If you are unsure about any of these, don't hesitate to ask. We are here to help!make format
. (required)make lint
. (required)make test
pass. (required)