basedpyright 1.15.2 → 1.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. package/dist/pyright-langserver.js +1 -1
  2. package/dist/pyright-langserver.js.map +1 -1
  3. package/dist/pyright.js +1 -1
  4. package/dist/pyright.js.map +1 -1
  5. package/dist/typeshed-fallback/stdlib/_bisect.pyi +16 -8
  6. package/dist/typeshed-fallback/stdlib/_csv.pyi +13 -4
  7. package/dist/typeshed-fallback/stdlib/_curses.pyi +1 -1
  8. package/dist/typeshed-fallback/stdlib/_decimal.pyi +19 -1
  9. package/dist/typeshed-fallback/stdlib/_imp.pyi +1 -1
  10. package/dist/typeshed-fallback/stdlib/_locale.pyi +11 -28
  11. package/dist/typeshed-fallback/stdlib/_lsprof.pyi +2 -0
  12. package/dist/typeshed-fallback/stdlib/_operator.pyi +1 -1
  13. package/dist/typeshed-fallback/stdlib/_posixsubprocess.pyi +10 -8
  14. package/dist/typeshed-fallback/stdlib/_socket.pyi +3 -15
  15. package/dist/typeshed-fallback/stdlib/_thread.pyi +6 -2
  16. package/dist/typeshed-fallback/stdlib/_warnings.pyi +2 -2
  17. package/dist/typeshed-fallback/stdlib/_weakref.pyi +9 -10
  18. package/dist/typeshed-fallback/stdlib/array.pyi +1 -1
  19. package/dist/typeshed-fallback/stdlib/atexit.pyi +4 -1
  20. package/dist/typeshed-fallback/stdlib/builtins.pyi +214 -203
  21. package/dist/typeshed-fallback/stdlib/cmath.pyi +1 -1
  22. package/dist/typeshed-fallback/stdlib/collections/__init__.pyi +15 -12
  23. package/dist/typeshed-fallback/stdlib/datetime.pyi +3 -3
  24. package/dist/typeshed-fallback/stdlib/faulthandler.pyi +8 -12
  25. package/dist/typeshed-fallback/stdlib/functools.pyi +18 -13
  26. package/dist/typeshed-fallback/stdlib/gc.pyi +1 -0
  27. package/dist/typeshed-fallback/stdlib/importlib/metadata/__init__.pyi +6 -5
  28. package/dist/typeshed-fallback/stdlib/io.pyi +48 -42
  29. package/dist/typeshed-fallback/stdlib/ipaddress.pyi +2 -2
  30. package/dist/typeshed-fallback/stdlib/itertools.pyi +6 -4
  31. package/dist/typeshed-fallback/stdlib/math.pyi +17 -5
  32. package/dist/typeshed-fallback/stdlib/multiprocessing/shared_memory.pyi +1 -1
  33. package/dist/typeshed-fallback/stdlib/os/__init__.pyi +22 -14
  34. package/dist/typeshed-fallback/stdlib/readline.pyi +29 -83
  35. package/dist/typeshed-fallback/stdlib/signal.pyi +4 -4
  36. package/dist/typeshed-fallback/stdlib/sqlite3/dbapi2.pyi +65 -55
  37. package/dist/typeshed-fallback/stdlib/ssl.pyi +1 -1
  38. package/dist/typeshed-fallback/stdlib/struct.pyi +1 -8
  39. package/dist/typeshed-fallback/stdlib/sys/__init__.pyi +7 -5
  40. package/dist/typeshed-fallback/stdlib/termios.pyi +14 -23
  41. package/dist/typeshed-fallback/stdlib/time.pyi +2 -2
  42. package/dist/typeshed-fallback/stdlib/types.pyi +49 -25
  43. package/dist/typeshed-fallback/stdlib/typing.pyi +25 -225
  44. package/dist/typeshed-fallback/stdlib/unicodedata.pyi +2 -2
  45. package/dist/typeshed-fallback/stdlib/zlib.pyi +1 -1
  46. package/package.json +2 -2
@@ -127,13 +127,7 @@ LambdaType = FunctionType
127
127
 
128
128
  @final
129
129
  class CodeType:
130
- """
131
- code(argcount, posonlyargcount, kwonlyargcount, nlocals, stacksize,
132
- flags, codestring, constants, names, varnames, filename, name,
133
- firstlineno, lnotab[, freevars[, cellvars]])
134
-
135
- Create a code object. Not for the faint of heart.
136
- """
130
+ """Create a code object. Not for the faint of heart."""
137
131
  def __eq__(self, value: object, /) -> bool:
138
132
  """Return self==value."""
139
133
  ...
@@ -349,13 +343,13 @@ class MappingProxyType(Mapping[_KT, _VT_co]):
349
343
  """D.copy() -> a shallow copy of D"""
350
344
  ...
351
345
  def keys(self) -> KeysView[_KT]:
352
- """D.keys() -> list of D's keys"""
346
+ """D.keys() -> a set-like object providing a view on D's keys"""
353
347
  ...
354
348
  def values(self) -> ValuesView[_VT_co]:
355
- """D.values() -> list of D's values"""
349
+ """D.values() -> an object providing a view on D's values"""
356
350
  ...
357
351
  def items(self) -> ItemsView[_KT, _VT_co]:
358
- """D.items() -> list of D's (key, value) pairs, as 2-tuples"""
352
+ """D.items() -> a set-like object providing a view on D's items"""
359
353
  ...
360
354
  @overload
361
355
  def get(self, key: _KT, /) -> _VT_co | None:
@@ -468,15 +462,25 @@ class GeneratorType(Generator[_YieldT_co, _SendT_contra, _ReturnT_co]):
468
462
  self, typ: type[BaseException], val: BaseException | object = ..., tb: TracebackType | None = ..., /
469
463
  ) -> _YieldT_co:
470
464
  """
471
- throw(typ[,val[,tb]]) -> raise exception in generator,
472
- return next yielded value or raise StopIteration.
465
+ throw(value)
466
+ throw(type[,value[,tb]])
467
+
468
+ Raise exception in generator, return next yielded value or raise
469
+ StopIteration.
470
+ the (type, val, tb) signature is deprecated,
471
+ and may be removed in a future version of Python.
473
472
  """
474
473
  ...
475
474
  @overload
476
475
  def throw(self, typ: BaseException, val: None = None, tb: TracebackType | None = ..., /) -> _YieldT_co:
477
476
  """
478
- throw(typ[,val[,tb]]) -> raise exception in generator,
479
- return next yielded value or raise StopIteration.
477
+ throw(value)
478
+ throw(type[,value[,tb]])
479
+
480
+ Raise exception in generator, return next yielded value or raise
481
+ StopIteration.
482
+ the (type, val, tb) signature is deprecated,
483
+ and may be removed in a future version of Python.
480
484
  """
481
485
  ...
482
486
  if sys.version_info >= (3, 13):
@@ -507,11 +511,25 @@ class AsyncGeneratorType(AsyncGenerator[_YieldT_co, _SendT_contra]):
507
511
  async def athrow(
508
512
  self, typ: type[BaseException], val: BaseException | object = ..., tb: TracebackType | None = ..., /
509
513
  ) -> _YieldT_co:
510
- """athrow(typ[,val[,tb]]) -> raise exception in generator."""
514
+ """
515
+ athrow(value)
516
+ athrow(type[,value[,tb]])
517
+
518
+ raise exception in generator.
519
+ the (type, val, tb) signature is deprecated,
520
+ and may be removed in a future version of Python.
521
+ """
511
522
  ...
512
523
  @overload
513
524
  async def athrow(self, typ: BaseException, val: None = None, tb: TracebackType | None = ..., /) -> _YieldT_co:
514
- """athrow(typ[,val[,tb]]) -> raise exception in generator."""
525
+ """
526
+ athrow(value)
527
+ athrow(type[,value[,tb]])
528
+
529
+ raise exception in generator.
530
+ the (type, val, tb) signature is deprecated,
531
+ and may be removed in a future version of Python.
532
+ """
515
533
  ...
516
534
  def aclose(self) -> Coroutine[Any, Any, None]:
517
535
  """aclose() -> raise GeneratorExit inside generator."""
@@ -548,15 +566,25 @@ class CoroutineType(Coroutine[_YieldT_co, _SendT_contra, _ReturnT_co]):
548
566
  self, typ: type[BaseException], val: BaseException | object = ..., tb: TracebackType | None = ..., /
549
567
  ) -> _YieldT_co:
550
568
  """
551
- throw(typ[,val[,tb]]) -> raise exception in coroutine,
552
- return next iterated value or raise StopIteration.
569
+ throw(value)
570
+ throw(type[,value[,traceback]])
571
+
572
+ Raise exception in coroutine, return next iterated value or raise
573
+ StopIteration.
574
+ the (type, val, tb) signature is deprecated,
575
+ and may be removed in a future version of Python.
553
576
  """
554
577
  ...
555
578
  @overload
556
579
  def throw(self, typ: BaseException, val: None = None, tb: TracebackType | None = ..., /) -> _YieldT_co:
557
580
  """
558
- throw(typ[,val[,tb]]) -> raise exception in coroutine,
559
- return next iterated value or raise StopIteration.
581
+ throw(value)
582
+ throw(type[,value[,traceback]])
583
+
584
+ Raise exception in coroutine, return next iterated value or raise
585
+ StopIteration.
586
+ the (type, val, tb) signature is deprecated,
587
+ and may be removed in a future version of Python.
560
588
  """
561
589
  ...
562
590
  if sys.version_info >= (3, 13):
@@ -564,11 +592,7 @@ class CoroutineType(Coroutine[_YieldT_co, _SendT_contra, _ReturnT_co]):
564
592
 
565
593
  @final
566
594
  class MethodType:
567
- """
568
- method(function, instance)
569
-
570
- Create a bound instance method object.
571
- """
595
+ """Create a bound instance method object."""
572
596
  @property
573
597
  def __closure__(self) -> tuple[CellType, ...] | None: ... # inherited from the added function
574
598
  @property
@@ -437,29 +437,13 @@ class SupportsRound(Protocol[_T_co]):
437
437
 
438
438
  @runtime_checkable
439
439
  class Sized(Protocol, metaclass=ABCMeta):
440
- """
441
- The central part of internal API.
442
-
443
- This represents a generic version of type 'origin' with type arguments 'params'.
444
- There are two kind of these aliases: user defined and special. The special ones
445
- are wrappers around builtin collections and ABCs in collections.abc. These must
446
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
447
- this is used by e.g. typing.List and typing.Dict.
448
- """
440
+ """A generic version of collections.abc.Sized."""
449
441
  @abstractmethod
450
442
  def __len__(self) -> int: ...
451
443
 
452
444
  @runtime_checkable
453
445
  class Hashable(Protocol, metaclass=ABCMeta):
454
- """
455
- The central part of internal API.
456
-
457
- This represents a generic version of type 'origin' with type arguments 'params'.
458
- There are two kind of these aliases: user defined and special. The special ones
459
- are wrappers around builtin collections and ABCs in collections.abc. These must
460
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
461
- this is used by e.g. typing.List and typing.Dict.
462
- """
446
+ """A generic version of collections.abc.Hashable."""
463
447
  # TODO: This is special, in that a subclass of a hashable class may not be hashable
464
448
  # (for example, list vs. object). It's not obvious how to represent this. This class
465
449
  # is currently mostly useless for static checking.
@@ -470,44 +454,20 @@ class Hashable(Protocol, metaclass=ABCMeta):
470
454
 
471
455
  @runtime_checkable
472
456
  class Iterable(Protocol[_T_co]):
473
- """
474
- The central part of internal API.
475
-
476
- This represents a generic version of type 'origin' with type arguments 'params'.
477
- There are two kind of these aliases: user defined and special. The special ones
478
- are wrappers around builtin collections and ABCs in collections.abc. These must
479
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
480
- this is used by e.g. typing.List and typing.Dict.
481
- """
457
+ """A generic version of collections.abc.Iterable."""
482
458
  @abstractmethod
483
459
  def __iter__(self) -> Iterator[_T_co]: ...
484
460
 
485
461
  @runtime_checkable
486
462
  class Iterator(Iterable[_T_co], Protocol[_T_co]):
487
- """
488
- The central part of internal API.
489
-
490
- This represents a generic version of type 'origin' with type arguments 'params'.
491
- There are two kind of these aliases: user defined and special. The special ones
492
- are wrappers around builtin collections and ABCs in collections.abc. These must
493
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
494
- this is used by e.g. typing.List and typing.Dict.
495
- """
463
+ """A generic version of collections.abc.Iterator."""
496
464
  @abstractmethod
497
465
  def __next__(self) -> _T_co: ...
498
466
  def __iter__(self) -> Iterator[_T_co]: ...
499
467
 
500
468
  @runtime_checkable
501
469
  class Reversible(Iterable[_T_co], Protocol[_T_co]):
502
- """
503
- The central part of internal API.
504
-
505
- This represents a generic version of type 'origin' with type arguments 'params'.
506
- There are two kind of these aliases: user defined and special. The special ones
507
- are wrappers around builtin collections and ABCs in collections.abc. These must
508
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
509
- this is used by e.g. typing.List and typing.Dict.
510
- """
470
+ """A generic version of collections.abc.Reversible."""
511
471
  @abstractmethod
512
472
  def __reversed__(self) -> Iterator[_T_co]: ...
513
473
 
@@ -516,15 +476,7 @@ _SendT_contra = TypeVar("_SendT_contra", contravariant=True, default=None)
516
476
  _ReturnT_co = TypeVar("_ReturnT_co", covariant=True, default=None)
517
477
 
518
478
  class Generator(Iterator[_YieldT_co], Generic[_YieldT_co, _SendT_contra, _ReturnT_co]):
519
- """
520
- The central part of internal API.
521
-
522
- This represents a generic version of type 'origin' with type arguments 'params'.
523
- There are two kind of these aliases: user defined and special. The special ones
524
- are wrappers around builtin collections and ABCs in collections.abc. These must
525
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
526
- this is used by e.g. typing.List and typing.Dict.
527
- """
479
+ """A generic version of collections.abc.Generator."""
528
480
  def __next__(self) -> _YieldT_co: ...
529
481
  @abstractmethod
530
482
  def send(self, value: _SendT_contra, /) -> _YieldT_co: ...
@@ -555,41 +507,17 @@ else:
555
507
 
556
508
  @runtime_checkable
557
509
  class ContextManager(AbstractContextManager[_T_co, bool | None], Protocol[_T_co]):
558
- """
559
- The central part of internal API.
560
-
561
- This represents a generic version of type 'origin' with type arguments 'params'.
562
- There are two kind of these aliases: user defined and special. The special ones
563
- are wrappers around builtin collections and ABCs in collections.abc. These must
564
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
565
- this is used by e.g. typing.List and typing.Dict.
566
- """
510
+ """A generic version of contextlib.AbstractContextManager."""
567
511
  ...
568
512
 
569
513
  @runtime_checkable
570
514
  class AsyncContextManager(AbstractAsyncContextManager[_T_co, bool | None], Protocol[_T_co]):
571
- """
572
- The central part of internal API.
573
-
574
- This represents a generic version of type 'origin' with type arguments 'params'.
575
- There are two kind of these aliases: user defined and special. The special ones
576
- are wrappers around builtin collections and ABCs in collections.abc. These must
577
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
578
- this is used by e.g. typing.List and typing.Dict.
579
- """
515
+ """A generic version of contextlib.AbstractAsyncContextManager."""
580
516
  ...
581
517
 
582
518
  @runtime_checkable
583
519
  class Awaitable(Protocol[_T_co]):
584
- """
585
- The central part of internal API.
586
-
587
- This represents a generic version of type 'origin' with type arguments 'params'.
588
- There are two kind of these aliases: user defined and special. The special ones
589
- are wrappers around builtin collections and ABCs in collections.abc. These must
590
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
591
- this is used by e.g. typing.List and typing.Dict.
592
- """
520
+ """A generic version of collections.abc.Awaitable."""
593
521
  @abstractmethod
594
522
  def __await__(self) -> Generator[Any, Any, _T_co]: ...
595
523
 
@@ -598,15 +526,7 @@ _SendT_contra_nd = TypeVar("_SendT_contra_nd", contravariant=True)
598
526
  _ReturnT_co_nd = TypeVar("_ReturnT_co_nd", covariant=True)
599
527
 
600
528
  class Coroutine(Awaitable[_ReturnT_co_nd], Generic[_YieldT_co, _SendT_contra_nd, _ReturnT_co_nd]):
601
- """
602
- The central part of internal API.
603
-
604
- This represents a generic version of type 'origin' with type arguments 'params'.
605
- There are two kind of these aliases: user defined and special. The special ones
606
- are wrappers around builtin collections and ABCs in collections.abc. These must
607
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
608
- this is used by e.g. typing.List and typing.Dict.
609
- """
529
+ """A generic version of collections.abc.Coroutine."""
610
530
  __name__: str
611
531
  __qualname__: str
612
532
  @property
@@ -642,43 +562,19 @@ class AwaitableGenerator(
642
562
 
643
563
  @runtime_checkable
644
564
  class AsyncIterable(Protocol[_T_co]):
645
- """
646
- The central part of internal API.
647
-
648
- This represents a generic version of type 'origin' with type arguments 'params'.
649
- There are two kind of these aliases: user defined and special. The special ones
650
- are wrappers around builtin collections and ABCs in collections.abc. These must
651
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
652
- this is used by e.g. typing.List and typing.Dict.
653
- """
565
+ """A generic version of collections.abc.AsyncIterable."""
654
566
  @abstractmethod
655
567
  def __aiter__(self) -> AsyncIterator[_T_co]: ...
656
568
 
657
569
  @runtime_checkable
658
570
  class AsyncIterator(AsyncIterable[_T_co], Protocol[_T_co]):
659
- """
660
- The central part of internal API.
661
-
662
- This represents a generic version of type 'origin' with type arguments 'params'.
663
- There are two kind of these aliases: user defined and special. The special ones
664
- are wrappers around builtin collections and ABCs in collections.abc. These must
665
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
666
- this is used by e.g. typing.List and typing.Dict.
667
- """
571
+ """A generic version of collections.abc.AsyncIterator."""
668
572
  @abstractmethod
669
573
  def __anext__(self) -> Awaitable[_T_co]: ...
670
574
  def __aiter__(self) -> AsyncIterator[_T_co]: ...
671
575
 
672
576
  class AsyncGenerator(AsyncIterator[_YieldT_co], Generic[_YieldT_co, _SendT_contra]):
673
- """
674
- The central part of internal API.
675
-
676
- This represents a generic version of type 'origin' with type arguments 'params'.
677
- There are two kind of these aliases: user defined and special. The special ones
678
- are wrappers around builtin collections and ABCs in collections.abc. These must
679
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
680
- this is used by e.g. typing.List and typing.Dict.
681
- """
577
+ """A generic version of collections.abc.AsyncGenerator."""
682
578
  def __anext__(self) -> Awaitable[_YieldT_co]: ...
683
579
  @abstractmethod
684
580
  def asend(self, value: _SendT_contra, /) -> Coroutine[Any, Any, _YieldT_co]: ...
@@ -704,44 +600,20 @@ class AsyncGenerator(AsyncIterator[_YieldT_co], Generic[_YieldT_co, _SendT_contr
704
600
 
705
601
  @runtime_checkable
706
602
  class Container(Protocol[_T_co]):
707
- """
708
- The central part of internal API.
709
-
710
- This represents a generic version of type 'origin' with type arguments 'params'.
711
- There are two kind of these aliases: user defined and special. The special ones
712
- are wrappers around builtin collections and ABCs in collections.abc. These must
713
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
714
- this is used by e.g. typing.List and typing.Dict.
715
- """
603
+ """A generic version of collections.abc.Container."""
716
604
  # This is generic more on vibes than anything else
717
605
  @abstractmethod
718
606
  def __contains__(self, x: object, /) -> bool: ...
719
607
 
720
608
  @runtime_checkable
721
609
  class Collection(Iterable[_T_co], Container[_T_co], Protocol[_T_co]):
722
- """
723
- The central part of internal API.
724
-
725
- This represents a generic version of type 'origin' with type arguments 'params'.
726
- There are two kind of these aliases: user defined and special. The special ones
727
- are wrappers around builtin collections and ABCs in collections.abc. These must
728
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
729
- this is used by e.g. typing.List and typing.Dict.
730
- """
610
+ """A generic version of collections.abc.Collection."""
731
611
  # Implement Sized (but don't have it as a base class).
732
612
  @abstractmethod
733
613
  def __len__(self) -> int: ...
734
614
 
735
615
  class Sequence(Collection[_T_co], Reversible[_T_co]):
736
- """
737
- The central part of internal API.
738
-
739
- This represents a generic version of type 'origin' with type arguments 'params'.
740
- There are two kind of these aliases: user defined and special. The special ones
741
- are wrappers around builtin collections and ABCs in collections.abc. These must
742
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
743
- this is used by e.g. typing.List and typing.Dict.
744
- """
616
+ """A generic version of collections.abc.Sequence."""
745
617
  @overload
746
618
  @abstractmethod
747
619
  def __getitem__(self, index: int) -> _T_co: ...
@@ -756,15 +628,7 @@ class Sequence(Collection[_T_co], Reversible[_T_co]):
756
628
  def __reversed__(self) -> Iterator[_T_co]: ...
757
629
 
758
630
  class MutableSequence(Sequence[_T]):
759
- """
760
- The central part of internal API.
761
-
762
- This represents a generic version of type 'origin' with type arguments 'params'.
763
- There are two kind of these aliases: user defined and special. The special ones
764
- are wrappers around builtin collections and ABCs in collections.abc. These must
765
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
766
- this is used by e.g. typing.List and typing.Dict.
767
- """
631
+ """A generic version of collections.abc.MutableSequence."""
768
632
  @abstractmethod
769
633
  def insert(self, index: int, value: _T) -> None: ...
770
634
  @overload
@@ -795,15 +659,7 @@ class MutableSequence(Sequence[_T]):
795
659
  def __iadd__(self, values: Iterable[_T]) -> typing_extensions.Self: ...
796
660
 
797
661
  class AbstractSet(Collection[_T_co]):
798
- """
799
- The central part of internal API.
800
-
801
- This represents a generic version of type 'origin' with type arguments 'params'.
802
- There are two kind of these aliases: user defined and special. The special ones
803
- are wrappers around builtin collections and ABCs in collections.abc. These must
804
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
805
- this is used by e.g. typing.List and typing.Dict.
806
- """
662
+ """A generic version of collections.abc.Set."""
807
663
  @abstractmethod
808
664
  def __contains__(self, x: object) -> bool: ...
809
665
  def _hash(self) -> int: ...
@@ -830,15 +686,7 @@ class AbstractSet(Collection[_T_co]):
830
686
  def isdisjoint(self, other: Iterable[Any]) -> bool: ...
831
687
 
832
688
  class MutableSet(AbstractSet[_T]):
833
- """
834
- The central part of internal API.
835
-
836
- This represents a generic version of type 'origin' with type arguments 'params'.
837
- There are two kind of these aliases: user defined and special. The special ones
838
- are wrappers around builtin collections and ABCs in collections.abc. These must
839
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
840
- this is used by e.g. typing.List and typing.Dict.
841
- """
689
+ """A generic version of collections.abc.MutableSet."""
842
690
  @abstractmethod
843
691
  def add(self, value: _T) -> None: ...
844
692
  @abstractmethod
@@ -853,28 +701,12 @@ class MutableSet(AbstractSet[_T]):
853
701
  def __isub__(self, it: AbstractSet[Any]) -> typing_extensions.Self: ...
854
702
 
855
703
  class MappingView(Sized):
856
- """
857
- The central part of internal API.
858
-
859
- This represents a generic version of type 'origin' with type arguments 'params'.
860
- There are two kind of these aliases: user defined and special. The special ones
861
- are wrappers around builtin collections and ABCs in collections.abc. These must
862
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
863
- this is used by e.g. typing.List and typing.Dict.
864
- """
704
+ """A generic version of collections.abc.MappingView."""
865
705
  def __init__(self, mapping: Mapping[Any, Any]) -> None: ... # undocumented
866
706
  def __len__(self) -> int: ...
867
707
 
868
708
  class ItemsView(MappingView, AbstractSet[tuple[_KT_co, _VT_co]], Generic[_KT_co, _VT_co]):
869
- """
870
- The central part of internal API.
871
-
872
- This represents a generic version of type 'origin' with type arguments 'params'.
873
- There are two kind of these aliases: user defined and special. The special ones
874
- are wrappers around builtin collections and ABCs in collections.abc. These must
875
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
876
- this is used by e.g. typing.List and typing.Dict.
877
- """
709
+ """A generic version of collections.abc.ItemsView."""
878
710
  def __init__(self, mapping: Mapping[_KT_co, _VT_co]) -> None: ... # undocumented
879
711
  def __and__(self, other: Iterable[Any]) -> set[tuple[_KT_co, _VT_co]]: ...
880
712
  def __rand__(self, other: Iterable[_T]) -> set[_T]: ...
@@ -889,15 +721,7 @@ class ItemsView(MappingView, AbstractSet[tuple[_KT_co, _VT_co]], Generic[_KT_co,
889
721
  def __rxor__(self, other: Iterable[_T]) -> set[tuple[_KT_co, _VT_co] | _T]: ...
890
722
 
891
723
  class KeysView(MappingView, AbstractSet[_KT_co]):
892
- """
893
- The central part of internal API.
894
-
895
- This represents a generic version of type 'origin' with type arguments 'params'.
896
- There are two kind of these aliases: user defined and special. The special ones
897
- are wrappers around builtin collections and ABCs in collections.abc. These must
898
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
899
- this is used by e.g. typing.List and typing.Dict.
900
- """
724
+ """A generic version of collections.abc.KeysView."""
901
725
  def __init__(self, mapping: Mapping[_KT_co, Any]) -> None: ... # undocumented
902
726
  def __and__(self, other: Iterable[Any]) -> set[_KT_co]: ...
903
727
  def __rand__(self, other: Iterable[_T]) -> set[_T]: ...
@@ -912,30 +736,14 @@ class KeysView(MappingView, AbstractSet[_KT_co]):
912
736
  def __rxor__(self, other: Iterable[_T]) -> set[_KT_co | _T]: ...
913
737
 
914
738
  class ValuesView(MappingView, Collection[_VT_co]):
915
- """
916
- The central part of internal API.
917
-
918
- This represents a generic version of type 'origin' with type arguments 'params'.
919
- There are two kind of these aliases: user defined and special. The special ones
920
- are wrappers around builtin collections and ABCs in collections.abc. These must
921
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
922
- this is used by e.g. typing.List and typing.Dict.
923
- """
739
+ """A generic version of collections.abc.ValuesView."""
924
740
  def __init__(self, mapping: Mapping[Any, _VT_co]) -> None: ... # undocumented
925
741
  def __contains__(self, value: object) -> bool: ...
926
742
  def __iter__(self) -> Iterator[_VT_co]: ...
927
743
  def __reversed__(self) -> Iterator[_VT_co]: ...
928
744
 
929
745
  class Mapping(Collection[_KT], Generic[_KT, _VT_co]):
930
- """
931
- The central part of internal API.
932
-
933
- This represents a generic version of type 'origin' with type arguments 'params'.
934
- There are two kind of these aliases: user defined and special. The special ones
935
- are wrappers around builtin collections and ABCs in collections.abc. These must
936
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
937
- this is used by e.g. typing.List and typing.Dict.
938
- """
746
+ """A generic version of collections.abc.Mapping."""
939
747
  # TODO: We wish the key type could also be covariant, but that doesn't work,
940
748
  # see discussion in https://github.com/python/typing/pull/273.
941
749
  @abstractmethod
@@ -954,15 +762,7 @@ class Mapping(Collection[_KT], Generic[_KT, _VT_co]):
954
762
  ...
955
763
 
956
764
  class MutableMapping(Mapping[_KT, _VT]):
957
- """
958
- The central part of internal API.
959
-
960
- This represents a generic version of type 'origin' with type arguments 'params'.
961
- There are two kind of these aliases: user defined and special. The special ones
962
- are wrappers around builtin collections and ABCs in collections.abc. These must
963
- have 'name' always set. If 'inst' is False, then the alias can't be instantiated,
964
- this is used by e.g. typing.List and typing.Dict.
965
- """
765
+ """A generic version of collections.abc.MutableMapping."""
966
766
  @abstractmethod
967
767
  def __setitem__(self, key: _KT, value: _VT, /) -> None: ...
968
768
  @abstractmethod
@@ -2,10 +2,10 @@
2
2
  This module provides access to the Unicode Character Database which
3
3
  defines character properties for all Unicode characters. The data in
4
4
  this database is based on the UnicodeData.txt file version
5
- 12.1.0 which is publicly available from ftp://ftp.unicode.org/.
5
+ 15.0.0 which is publicly available from ftp://ftp.unicode.org/.
6
6
 
7
7
  The module uses the same names and symbols as defined by the
8
- UnicodeData File Format 12.1.0.
8
+ UnicodeData File Format 15.0.0.
9
9
  """
10
10
 
11
11
  import sys
@@ -7,7 +7,7 @@ compress(data[, level]) -- Compress data, with compression level 0-9 or -1.
7
7
  compressobj([level[, ...]]) -- Return a compressor object.
8
8
  crc32(string[, start]) -- Compute a CRC-32 checksum.
9
9
  decompress(string,[wbits],[bufsize]) -- Decompresses a compressed string.
10
- decompressobj([wbits[, zdict]]]) -- Return a decompressor object.
10
+ decompressobj([wbits[, zdict]]) -- Return a decompressor object.
11
11
 
12
12
  'wbits' is window buffer size and container format.
13
13
  Compressor objects support compress() and flush() methods; decompressor
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "basedpyright",
3
3
  "displayName": "basedpyright",
4
4
  "description": "a pyright fork with various type checking improvements, improved vscode support and pylance features built into the language server",
5
- "version": "1.15.2",
5
+ "version": "1.16.0",
6
6
  "license": "MIT",
7
7
  "author": {
8
8
  "name": "detachhead"
@@ -30,7 +30,7 @@
30
30
  "esbuild-loader": "^3.2.0",
31
31
  "shx": "^0.3.4",
32
32
  "ts-loader": "^9.5.1",
33
- "typescript": "~5.5.0-beta",
33
+ "typescript": "~5.5.4",
34
34
  "webpack": "^5.90.1",
35
35
  "webpack-cli": "^5.1.4"
36
36
  },