github DetachHead/basedpyright v1.27.0
v1.27.0 (pyright 1.1.393)

one day ago

What's Changed

jupyter notebook support

just like pylance, basedpyright now works with jupyter notebooks:

jupyter

but unlike pylance, you can also type check your notebooks with the CLI:

>basedpyright
c:\project\asdf.ipynb - cell 1
  c:\project\asdf.ipynb:1:1:12 - error: Type "Literal['']" is not assignable to declared type "int"
    "Literal['']" is not assignable to "int" (reportAssignmentType)
c:\project\asdf.ipynb - cell 2
  c:\project\asdf.ipynb:2:1:12 - error: Type "int" is not assignable to declared type "str"
    "int" is not assignable to "str" (reportAssignmentType)
2 errors, 0 warnings, 0 notes

implemented in #1035 & #1046

other changes

Full Changelog: v1.26.0...v1.27.0

Don't miss a new basedpyright release

NewReleases is sending notifications on new releases.