You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Argument of type "X" cannot be assigned to parameter "arg" of type "Sentinel" in function "inspect_sentinel"
"X" is not assignable to "Sentinel" (reportArgumentType)
But, X is an instance of a Sentinel type. It should be possible to pass any sentinel where Sentinel type is expected. For example: for type inspection, as I do here.
When I write:
I get:
But,
Xis an instance of aSentineltype. It should be possible to pass any sentinel whereSentineltype is expected. For example: for type inspection, as I do here.Playground: https://pyright-play.net/?strict=true&locale=en&code=GYJw9gtgBALgngBwJYDsDmB9ApgDxllAZyTCKiQgTBBigGUCZUsAbKAKHYA0oBeexsxYAKAERdRASk4ATLMHJEEWAMYwMhQSlbCAhiDQAuASibaWkqAFoAfFABypLIfZQ3UAHRfOqQsrUaWjr6aLxckkA