Commit Graph

  • c7c06ee16c add an azure devops build bschnurr 2024-06-21 16:13:10 -0700
  • 2efc12f999
    Improved diagnostic messages for type errors detected during __set__ and __delete__ calls to a descriptor object. This addresses #8181. (#8198) Eric Traut 2024-06-21 23:13:01 +0200
  • 5740c3dd0e Improved diagnostic messages for type errors detected during __set__ and __delete__ calls to a descriptor object. This addresses #8181. Eric Traut 2024-06-21 23:05:28 +0200
  • d2ff2a4517
    Fixed bug that results in an incorrect overload implementation diagnostic when using tuple[()] in overloads. This addresses #8194. (#8195) Eric Traut 2024-06-21 13:25:01 +0200
  • 21fcc155c8 Fixed bug that results in an incorrect overload implementation diagnostic when using tuple[()] in overloads. This addresses #8194. Eric Traut 2024-06-21 13:09:40 +0200
  • 221a977705 Changed hover provider output for type aliases to conform more closely with the new Python 3.12 type syntax. This partially addresses #8185. Eric Traut 2024-06-21 12:41:22 +0200
  • 1bbb5d90a1 Fixed recent regression that results in a runtime assert (and therefore a crash) in certain circumstances when computing the MRO for a class. This addresses #8191. Eric Traut 2024-06-20 21:33:48 +0200
  • b841e110f3
    Improved consistency of unreachable code. Previously, unreachable code was not supported for if or else suites when the condition type was narrowed to Never. This addresses https://github.com/microsoft/pylance-release/issues/6028. (#8190) Eric Traut 2024-06-20 17:00:26 +0200
  • d5c4e8c122 Improved consistency of unreachable code. Previously, unreachable code was not supported for if or else suites when the condition type was narrowed to Never. This addresses https://github.com/microsoft/pylance-release/issues/6028. Eric Traut 2024-06-19 22:05:52 +0200
  • 73f9f2814c Improved consistency of unreachable code. Previously, unreachable code was not supported for if or else suites when the condition type was narrowed to Never. This addresses https://github.com/microsoft/pylance-release/issues/6028. Eric Traut 2024-06-19 22:05:52 +0200
  • 81ff21e21a
    Fixed bug that leads to a false negative when a subscript object used in an index expression supports __index__ but the indexed object specifies that it requires int. This addresses #8183. (#8188) Eric Traut 2024-06-20 16:14:49 +0200
  • 2e138c84c2 Fixed bug that leads to a false negative when a subscript object used in an index expression supports __index__ but the indexed object specifies that it requires int. This addresses #8183. Eric Traut 2024-06-20 16:05:47 +0200
  • 5a90bbd083 Improved consistency of unreachable code. Previously, unreachable code was not supported for if or else suites when the condition type was narrowed to Never. This addresses https://github.com/microsoft/pylance-release/issues/6028. Eric Traut 2024-06-19 22:05:52 +0200
  • 4a9b9a547c
    fix broken markdown link (#8186) Jonas Vacek 2024-06-20 15:55:37 +0200
  • 65fd8e6ece
    fix broken markdown link Jonas Vacek 2024-06-20 15:47:11 +0200
  • 98d68d5d3a Fixed recent regression in reportUninitializedInstanceVariable check relating to NamedTuple instance variables. This addresses #8184. Eric Traut 2024-06-20 14:44:57 +0200
  • ea70aedc24 Improved consistency of unreachable code. Previously, unreachable code was not supported for if or else suites when the condition type was narrowed to Never. This addresses #6028. Eric Traut 2024-06-19 22:05:52 +0200
  • b7be7b9a10
    pull-pylance-with-pyright-1.1.368-9572872079 (#8173) PylanceBot 2024-06-19 11:00:21 -0700
  • c829cf24b2
    Merge branch 'main' into pull-pylance-with-pyright-1.1.368-9572872079 Rich Chiodo 2024-06-19 10:45:35 -0700
  • 20942b3389
    Added support for detecting mismatched property types in base classes used for multiple inheritance. This addresses #8167. (#8175) Eric Traut 2024-06-19 08:52:40 +0200
  • 8d607e93ea Added support for detecting mismatched property types in base classes used for multiple inheritance. This addresses #8167. Eric Traut 2024-06-19 08:44:44 +0200
  • edbbd2759f pull-pylance-with-pyright-1.1.368-9572872079 GitHub Actions 2024-06-18 22:12:44 +0000
  • 1bf99d3212 Published 1.1.368 1.1.368 Eric Traut 2024-06-19 00:01:32 +0200
  • 86715ec758 Fixed bug that results in unions consisting of different specialized forms of a generic TypedDict to "lose" all but one of these subtypes. This addresses #8169. Eric Traut 2024-06-18 23:31:13 +0200
  • 918bc4c745 Removed some vestigial code related to inlined TypedDicts. Eric Traut 2024-06-18 23:17:37 +0200
  • e54e2f4399
    Bump braces from 3.0.2 to 3.0.3 in /packages/pyright-internal (#8172) dependabot[bot] 2024-06-18 22:51:29 +0200
  • cc37f9a191
    Bump braces from 3.0.2 to 3.0.3 in /packages/pyright-internal dependabot[bot] 2024-06-18 20:49:03 +0000
  • beb1f15f4b
    Bump braces from 3.0.2 to 3.0.3 in /packages/pyright (#8122) dependabot[bot] 2024-06-18 22:48:31 +0200
  • f1725468c7
    Merge branch 'main' into dependabot/npm_and_yarn/packages/pyright/braces-3.0.3 Eric Traut 2024-06-18 22:48:21 +0200
  • 18511f1441 Added check for illegal use of Protocol type argument that is not a type parameter. The runtime generates an exception for this condition. This addresses #8158. Eric Traut 2024-06-17 23:05:57 +0200
  • ef025a1ac2
    Fixed bug in pattern matching for Callable() in the negative (fall-through) case. This addresses #8160. (#8163) Eric Traut 2024-06-17 23:04:30 +0200
  • 102c48f03e Fixed bug in pattern matching for Callable() in the negative (fall-through) case. This addresses #8160. Eric Traut 2024-06-17 22:55:47 +0200
  • 0f654e077b
    Fix stubPath's default value in schema (#8156) InSync 2024-06-17 19:25:17 +0700
  • 81f8a8c089
    Fix stubPath's default value in schema InSync 2024-06-17 17:24:21 +0700
  • 48a03076a3 Fixed bug that resulted in the incorrect synthesis of __dataclass_fields__ for named tuples. This addresses #8152. Eric Traut 2024-06-16 22:41:09 +0200
  • 5f47007df3
    Clarify description for exclude (#8148) InSync 2024-06-16 10:59:09 +0700
  • b452e0e8e3
    Clarify description for exclude InSync 2024-06-16 03:55:37 +0700
  • 7ca7631808 Changed the way that PEP 695 type aliases are displayed when hovering over a reference to the type alias. Previously, the symbol was displayed as TypeAliasType rather than the expanded type alias type. This addresses #8147. Eric Traut 2024-06-15 19:03:12 +0200
  • 6dc3b39902 Fixed a bug in the "type printer" (the component responsible for translating a type into its textual form) for type aliases defined using PEP 695 syntax. Eric Traut 2024-06-15 18:28:09 +0200
  • 51934658c4 Unit tests Erik De Bonte 2024-06-14 16:40:16 -0700
  • f6274b3cc3 Fix from pyrx PR 5251 Erik De Bonte 2024-06-14 16:27:03 -0700
  • a03eb8492e Removed recent change in dataclass_transform handling. Dataclass properties should not be inherited from base classes after all. See https://discuss.python.org/t/dataclass-transform-inheriting-class-doesnt-recognize-kw-only-true-from-parent-class/55734/2. Eric Traut 2024-06-14 09:15:34 -0700
  • cbd189a29f
    Changed dataclass_transform behavior to allow dataclass behaviors (like kw_only) to be overridden by intermediate base classes. This addresses #8140. (#8141) Eric Traut 2024-06-13 15:29:01 -0700
  • c1c2590530 Changed dataclass_transform behavior to allow dataclass behaviors (like kw_only) to be overridden by intermediate base classes. This addresses #8140. Eric Traut 2024-06-13 15:19:47 -0700
  • 75d0f2b5a1 Fixed regression that results in an internal assertion (and crash) related to TypeVar variance inference. This addresses #8137. Eric Traut 2024-06-13 09:42:37 -0700
  • 093e74aa6e
    Fixed bug that causes a "bare" type (with no type argument) or type[Any] to be treated as a possible descriptor object. This addresses #8136. (#8138) Eric Traut 2024-06-13 08:56:09 -0700
  • fbfd671757 Fixed bug that causes a "bare" type (with no type argument) or type[Any] to be treated as a possible descriptor object. This addresses #8136. Eric Traut 2024-06-13 08:13:40 -0700
  • 5cb16fe7e4 Fixed bug that results in inconsistent diagnostics when surrounding an argument expression with parentheses. This addresses part of #8133. Eric Traut 2024-06-12 22:02:52 -0700
  • 32f44d921a
    Changed the behavior of double underscored symbols that are part of a module's namespace when that module is not a stub or in a "py.typed" package. Such symbols are no longer ignored, although they are considered private. This addresses #8131. (#8132) Eric Traut 2024-06-12 14:01:56 -0700
  • 48f4b62f70
    Merge branch 'main' into issue8131 Eric Traut 2024-06-12 14:01:46 -0700
  • 7dd5ba9c07 Changed the behavior of double underscored symbols that are part of a module's namespace when that module is not a stub or in a "py.typed" package. Such symbols are no longer ignored, although they are considered private. This addresses #8131. Eric Traut 2024-06-12 13:40:45 -0700
  • 5d77369056
    pull-pylance-with-pyright-1.1.367-9475931426 (#8123) PylanceBot 2024-06-12 11:02:27 -0700
  • 8cb85abef5
    Merge branch 'main' into pull-pylance-with-pyright-1.1.367-9475931426 Rich Chiodo 2024-06-12 10:49:10 -0700
  • 63e0876cff Added support for deprecated objects that are instantiated prior to being used as a decorator. This allows for a factory usage pattern. This addresses #5953. Eric Traut 2024-06-12 10:48:37 -0700
  • 6baa5b1368 Fixed a bug that causes warnings.deprecated not to work if the python version is 3.13. This was caused by recent changes to typeshed stubs. Eric Traut 2024-06-12 10:46:48 -0700
  • d4f732820d
    Merge branch 'main' into pull-pylance-with-pyright-1.1.367-9475931426 Rich Chiodo 2024-06-12 10:45:06 -0700
  • b0cee14316
    Changed inference behavior for generator functions with no reachable yield or yield from statements. The "yield type" (the first type argument to Generator) is now inferred as Never in this case rather than None. This addresses #8127. (#8130) Eric Traut 2024-06-12 09:40:56 -0700
  • 5a49852a17 Changed inference behavior for generator functions with no reachable yield or yield from statements. The "yield type" (the first type argument to Generator) is now inferred as Never in this case rather than None. This addresses #8127. Eric Traut 2024-06-12 09:09:20 -0700
  • b917ab1743 pull-pylance-with-pyright-1.1.367-9475931426 GitHub Actions 2024-06-12 02:52:43 +0000
  • 83d74b5789
    Bump braces from 3.0.2 to 3.0.3 in /packages/pyright dependabot[bot] 2024-06-12 02:41:22 +0000
  • 597c634157 Published 1.1.367 1.1.367 Eric Traut 2024-06-11 19:40:49 -0700
  • f2e5ff87df
    Simplified internal FunctionType.clone method. (#8121) Eric Traut 2024-06-11 19:29:53 -0700
  • 2b5a34568a Simplified internal FunctionType.clone method. Eric Traut 2024-06-11 19:22:36 -0700
  • 1742c57f8d Added helper function to wrap type evaluator functions that cannot be safely interrupted by a cancellation exception. Eric Traut 2024-06-11 15:13:20 -0700
  • 807b160a39
    Discard TypeEvaluator if cancellation leaves partially-constructed function type in cache (#8118) Erik De Bonte 2024-06-11 15:02:36 -0700
  • 8e1797cca7 Clarified in documentation that ... is an ellipsis token. Eric Traut 2024-06-11 14:18:55 -0700
  • d34d9ccc27 Fixed regression in the handling of certain __init__ methods with an explicit type annotation for self. Eric Traut 2024-06-11 13:27:02 -0700
  • 9220328c5a
    Merge branch 'main' into pylance4295 Eric Traut 2024-06-11 13:12:25 -0700
  • add2193101 Fixed subtle bug in a test case that was resulting in a long hang during unit tests. Eric Traut 2024-06-11 13:11:42 -0700
  • 0df185ebd4
    Simplified handling of TypeVars used in bound objects for constructor methods. (#8119) Eric Traut 2024-06-11 12:50:12 -0700
  • d1045bcd30 Simplified handling of TypeVars used in bound objects for constructor methods. Eric Traut 2024-06-11 12:21:55 -0700
  • 3381257df0 Fix comments Erik De Bonte 2024-06-11 11:32:07 -0700
  • 7c9577ed83 Remove debug logging Erik De Bonte 2024-06-11 10:57:58 -0700
  • d7f7a1c8d5 Fix via isTypeCacheIncomplete on cancellation Erik De Bonte 2024-06-11 10:30:38 -0700
  • 0edcd2eecf
    Fixed bug that results in parameter types being converted to Any when converting a NewType or dataclass constructor to a callable. This addresses #8116. (#8117) Eric Traut 2024-06-11 09:08:46 -0700
  • 4781b466aa Fixed bug that results in parameter types being converted to Any when converting a NewType or dataclass constructor to a callable. This addresses #8116. Eric Traut 2024-06-11 08:57:25 -0700
  • 2b0a1d92dd Simplified FunctionType.cloneForSpecialization method. Eric Traut 2024-06-10 19:39:33 -0700
  • ec196107e2 Updated typeshed stubs to the latest version (to pick up recent fix in shutil.pyi). Eric Traut 2024-06-10 13:40:05 -0700
  • 81d43e4c41 Added consistent use of getTypeVarScopeId accessor function. No functional change. Eric Traut 2024-06-10 13:37:17 -0700
  • 45fcebfe2c
    Changed the import resolution order to better reflect runtime behavior and match a proposed change to the typing spec. In particular, stdlib typeshed stubs are now resolved prior to site_packages. This addresses #8099. (#8100) Eric Traut 2024-06-09 07:57:44 -0700
  • cbd91f38fa
    Merge branch 'main' into issue8099 Eric Traut 2024-06-09 07:57:23 -0700
  • 5bc331a51d
    Update Hack saronaldo44 2024-06-09 12:41:59 +0300
  • e588c6f984 Fixed bug in previous commit the caused default include/exclude values not to be provided in the case where a pyproject.toml was present but contained no pyright section. Thanks to @augustelalande for catching this. Eric Traut 2024-06-08 23:06:00 -0700
  • 4319e03b71 Fixed bug that led to divergent behaviors between pyrightconfig.json and pyproject.toml configurations. Specifically, default exclude patterns were not added in the case of pyproject.toml. This addresses #8102. Eric Traut 2024-06-08 22:24:45 -0700
  • c48f0c1112 check for configs to avoid problems with empty pyproject augustelalande 2024-06-08 23:05:06 -0400
  • 23d2569db9 unify behavior augustelalande 2024-06-08 22:47:27 -0400
  • 238f70049f
    Fixed bug that results in a false positive error under certain circumstances involving tuple type narrowing in a loop. This addresses #8095. (#8098) Eric Traut 2024-06-08 13:12:36 -0700
  • de1b42cdf5 Changed the import resolution order to better reflect runtime behavior and match a proposed change to the typing spec. In particular, stdlib typeshed stubs are now resolved prior to site_packages. This addresses #8099. Eric Traut 2024-06-08 13:11:59 -0700
  • 68ac0bdab7 Fixed bug that results in a false positive error under certain circumstances involving tuple type narrowing in a loop. This addresses #8095. Eric Traut 2024-06-08 12:59:38 -0700
  • 5a0ec2dda4 Fixed bug that causes Final annotation not to be honored when wrapped in an Annotated annotation. This addresses #8097. Eric Traut 2024-06-08 10:10:38 -0700
  • ec229aa925
    Fixed a bug that results in incorrect (local) type evaluation of an instance variable with a declared type when assigned within a loop that uses an augmented assignment. This addresses #8090. (#8093) Eric Traut 2024-06-07 15:51:02 -0700
  • fc56696557 Fixed a bug that results in incorrect (local) type evaluation of an instance variable with a declared type when assigned within a loop that uses an augmented assignment. This addresses #8090. Eric Traut 2024-06-07 15:16:57 -0700
  • aad860332e Fixed bug that results in duplicate and (contradictory) diagnostic outputs in certain cases where reveal_type is used in a loop. Eric Traut 2024-06-07 14:36:54 -0700
  • a0af8c5c8c Simplified interface to "assignTypeToXXX" methods. Eric Traut 2024-06-07 14:02:05 -0700
  • 4b84651950 Added the ability to override type checking configuration settings for each execution environment. This allows, for example, a test directory to use different settings than the directories that contain production code. This addresses #4059. Eric Traut 2024-06-06 15:25:01 -0700
  • 2c313972d3 Simplified JSON schema for config file in advance of adding config overrides for execution contexts. Eric Traut 2024-06-06 15:08:29 -0700
  • a4873a6a83 Simplified some code for logging diagnostics in checker and binder. Eric Traut 2024-06-06 13:57:48 -0700
  • 32076952c7
    Fixed bug that results in a false positive when accessing a generic attribute in a base class from a subclass that explicitly specializes the generic type. This addresses #8083. (#8086) Eric Traut 2024-06-06 10:29:53 -0700
  • b948c06318 Fixed bug that results in a false positive when accessing a generic attribute in a base class from a subclass that explicitly specializes the generic type. This addresses #8083. Eric Traut 2024-06-06 10:07:58 -0700
  • 983adb4334 Fixed bug that results in a false positive when accessing a generic attribute in a base class from a subclass that explicitly specializes the generic type. This addresses #8083. Eric Traut 2024-06-06 10:07:58 -0700