Comparing version 1.0.8 to 1.0.9
@@ -5,3 +5,3 @@ { | ||
"description": "Type checker for the Python language", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"license": "MIT", | ||
@@ -8,0 +8,0 @@ "author": { |
@@ -12,3 +12,3 @@ ![Pyright](/docs/img/PyrightLarge.png) | ||
### Configurability | ||
Pyright supports flexible [configuration](/docs/configuration.md) that provides granular control over settings. Different “execution environments” can be specified for different subsets of a source base. Each environment can specify different module search paths, python language version, and platform target. | ||
Pyright supports [configuration files](/docs/configuration.md) that provide granular control over settings. Different “execution environments” can be associated subdirectories within a source base. Each environment can specify different module search paths, python language versions, and platform targets. | ||
@@ -27,3 +27,3 @@ ### Type Checking Features | ||
### Command-line or Language Service | ||
### Command-line Tool or VS Code Extension | ||
Pyright includes both a [command-line tool](/docs/command-line.md) and a [Language Server Protocol](https://microsoft.github.io/language-server-protocol/) plugin for VS Code. | ||
@@ -34,6 +34,6 @@ | ||
## Documentation | ||
* [Getting Started](/docs/getting-started.md) | ||
* [Command-line Options](/docs/command-line.md) | ||
* [Configuration](/docs/configuration.md) | ||
* [Import Resolution](/docs/import-resolution.md) | ||
* [Getting Started](/docs/getting-started.md) | ||
* [Building & Debugging](/docs/build-debug.md) | ||
@@ -73,14 +73,2 @@ * [Pyright Internals](/docs/internals.md) | ||
## Code Structure | ||
* client/src/extension.ts: Language Server Protocol (LSP) client entry point for VS Code extension. | ||
* client/typeshed-fallback/: Recent copy of Typeshed type stub files for Python stdlib | ||
* server/src/pyright.ts: Main entry point for command-line tool | ||
* server/src/server.ts: Main entry point for LSP server | ||
* server/src/analyzer: Modules that perform analysis passes over Python parse tree | ||
* server/src/common: Modules that are common to the parser and analyzer | ||
* server/src/parser: Modules that perform tokenization and parsing of Python source | ||
* server/src/tests: Tests for the parser and analyzer | ||
## TODO | ||
@@ -90,2 +78,3 @@ | ||
* Validate that all abstract methods are overridden | ||
* Type analysis support for generators | ||
@@ -96,5 +85,3 @@ * Type analysis support for coroutines | ||
* Address the many TODO comments in the code | ||
* Better handling of function decorators (don't punt on type checking) | ||
* Add more tests for type checker | ||
* Validate that all abstract methods are overridden | ||
* Provide switch that treats instance variables and methods that begin with underscore as private | ||
* Validate parameters for magic functions | ||
@@ -106,7 +93,7 @@ * Synthesize TypeVar param and return types for lambdas where possible | ||
* Validate consistency of subclass type vars across all declared methods | ||
* Validate await / async consistency | ||
* Flag assignments to read-only values (None, True, False, __debug__) as errors | ||
* Add support for type hints on var-arg parameters | ||
* Add support for NoReturn type | ||
* Flag assignments to read-only values (`None`, `True`, `False`, `__debug__`) as errors | ||
* Revamp support for properties - model with Descriptor protocol, detect missing setter | ||
* Add numeric codes to diagnostics and a configuration mechanism for disabling errors by code | ||
* Move error strings out of the main code files so they can be localized | ||
@@ -113,0 +100,0 @@ |
Sorry, the diff of this file is too big to display
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
2278194
532
2889
107
4