typeshed icon indicating copy to clipboard operation
typeshed copied to clipboard

Update dependency pyright to v1.1.402

Open renovate[bot] opened this issue 9 months ago • 6 comments

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
pyright ==1.1.400 -> ==1.1.402 age adoption passing confidence

Release Notes

RobertCraigie/pyright-python (pyright)

v1.1.402

Compare Source

v1.1.401

Compare Source


Configuration

📅 Schedule: Branch creation - "before 4am" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • [ ] If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

renovate[bot] avatar May 22 '25 03:05 renovate[bot]

We can't update pyright due to a bug: microsoft/pyright#10487 microsoft/pyright#10484

srittau avatar May 22 '25 08:05 srittau

We can't update pyright due to a bug: microsoft/pyright#10487 microsoft/pyright#10484

These are now resolved, but we have a new false positive on Python 3.14 that makes little sense to me:

  /home/runner/work/typeshed/typeshed/stdlib/string/templatelib.pyi:1:1 - error: "/home/runner/work/typeshed/typeshed/stdlib/string/templatelib.pyi" is overriding the stdlib module "string.templatelib" (reportShadowedImports)

AlexWaygood avatar Jun 11 '25 14:06 AlexWaygood

Yes, that sounds odd. @erictraut any ideas if there's something special with string.templatelib that causes this error in typeshed's CI:

Running: /opt/hostedtoolcache/Python/3.13.3/x64/bin/pyright --project ./pyrightconfig.testcases.json --pythonplatform Darwin --pythonversion 3.14
/home/runner/work/typeshed/typeshed/stdlib/string/templatelib.pyi
  /home/runner/work/typeshed/typeshed/stdlib/string/templatelib.pyi:1:1 - error: "/home/runner/work/typeshed/typeshed/stdlib/string/templatelib.pyi" is overriding the stdlib module "string.templatelib" (reportShadowedImports)
1 error, 0 warnings, 0 informations 

JelleZijlstra avatar Jun 12 '25 03:06 JelleZijlstra

any ideas if there's something special with string.templatelib that causes this error in typeshed's CI.

This is a pyright regression that was discovered after I released 1.1.402. It has already been fixed and will be addressed in the next release. Apologies for the inconvenience. If this is blocking something important, I could do a quick-turn release.

erictraut avatar Jun 12 '25 04:06 erictraut

Thanks! I don't think there's any hurry, typeshed can just upgrade to 1.1.403 when it comes out.

JelleZijlstra avatar Jun 12 '25 13:06 JelleZijlstra

I wouldn't mind a single pyright: ignore here but we can also just wait. Either way no hurry on 1.1.403.

Avasam avatar Jun 12 '25 15:06 Avasam