Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Crowell committed May 20, 2021
0 parents commit 6866e99
Show file tree
Hide file tree
Showing 5 changed files with 154 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"python.linting.enabled": true,
"python.analysis.typeCheckingMode": "basic",

// "python.analysis.logLevel": "Trace",
"python.pythonPath": ".venv/bin/python",
}
122 changes: 122 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[virtualenvs]
in-project = true
19 changes: 19 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[tool.poetry]
name = "pylance-test"
version = "0.1.0"
description = "Demo project for Pylance issues"
authors = ["Brian Crowell <[email protected]>"]

[tool.poetry.dependencies]
python = "^3.9"
PyJWT = {extras = ["crypto"], version = "^2.0.1"}

[tool.pyright]
include = ["src"]
executionEnvironments = [
{ root = "src" }
]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
4 changes: 4 additions & 0 deletions src/example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import jwt

# This should be an error because payload expects Dict[str, Any]
jwt.encode(payload='subsandwich')

0 comments on commit 6866e99

Please sign in to comment.