diff --git a/pyproject.toml b/pyproject.toml index 56c4284d1..7220ef986 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,6 +5,9 @@ strictParameterNoneValue = true strictDictionaryInference = true strictListInference = true reportOptionalMemberAccess = false +reportOptionalContextManager = false +# rest_framework's serializer's `validated_data` is typed as optional None +reportOptionalSubscript = false # Sadly pyright still has issues with enums, and they fall under general type issues # so we have to disable those for now reportGeneralTypeIssues = false diff --git a/web/package-lock.json b/web/package-lock.json index f434c2af7..a40147076 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -64,7 +64,7 @@ "mermaid": "^10.1.0", "moment": "^2.29.4", "prettier": "^2.8.8", - "pyright": "^1.1.305", + "pyright": "^1.1.306", "rapidoc": "^9.3.4", "rollup": "^2.79.1", "rollup-plugin-copy": "^3.4.0", @@ -8481,9 +8481,9 @@ } }, "node_modules/pyright": { - "version": "1.1.305", - "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.305.tgz", - "integrity": "sha512-mDLZutboqrfyEXaN8GxJPqUK7KeJlO0/POU/icy8rM56Zl3iHWNeSymBf/zFCiVz1kqNc7yy/RgqxOHX0HHHrw==", + "version": "1.1.306", + "resolved": "https://registry.npmjs.org/pyright/-/pyright-1.1.306.tgz", + "integrity": "sha512-2OdV1XyYZMTjGY5deOBZGaHkBuAqTR13DvwlIXFQUTx1ZSxOkCsfibOlIy1ydpDnUY2aaweaXe39clthIipnrg==", "bin": { "pyright": "index.js", "pyright-langserver": "langserver.index.js" diff --git a/web/package.json b/web/package.json index 6730c0c0a..fb12db318 100644 --- a/web/package.json +++ b/web/package.json @@ -71,7 +71,7 @@ "mermaid": "^10.1.0", "moment": "^2.29.4", "prettier": "^2.8.8", - "pyright": "^1.1.305", + "pyright": "^1.1.306", "rapidoc": "^9.3.4", "rollup": "^2.79.1", "rollup-plugin-copy": "^3.4.0",