Illegal type annotation: call expression not allowed Pylance(reportGeneralTypeIssues)
"motor_asyncio" is not a known member of module Pylance(reportGeneralTypeIssues), will be solved by #147
await product.set({Product.name: "Gold bar"})
a. "Product" is not awaitable Pylance(reportGeneralTypeIssues)
b. "set" is not a known member of "None" Pylance(reportOptionalMemberAccess)
beanie ver.: 1.7.0 os: macOS 11.6, m1 machine VSCode: 1.60.1 VSCode Python extension: v2021.9.1246542782
Indexed
: (related to #10, #59, #105)"motor_asyncio"
is not a known member of module Pylance(reportGeneralTypeIssues), will be solved by #147await product.set({Product.name: "Gold bar"})
a."Product"
is not awaitable Pylance(reportGeneralTypeIssues) b. "set" is not a known member of "None" Pylance(reportOptionalMemberAccess)Pylance ref: https://github.com/microsoft/pylance-release/blob/main/DIAGNOSTIC_SEVERITY_RULES.md#diagnostic-severity-rules
To temporarily suppress this errors:
# pyright: reportGeneralTypeIssues=warning, reportOptionalMemberAccess=warning
. (or warning-> false) at the top of the file# type: ignore
(PEP484)