Skip to content

Commit e719d54

Browse files
committed
update pyright config
1 parent bd1d715 commit e719d54

File tree

2 files changed

+88
-2
lines changed

2 files changed

+88
-2
lines changed

pyproject.toml

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,99 @@ exclude = [
88
]
99

1010
pythonVersion = "3.12"
11-
typeCheckingMode = "strict"
1211
pythonPlatform = "All"
12+
typeCheckingMode = "standard"
13+
analyzeUnannotatedFunctions = true
14+
disableBytesTypePromotions = true
15+
strictParameterNoneValue = true
16+
enableTypeIgnoreComments = true
17+
enableReachabilityAnalysis = true
18+
strictListInference = true
19+
strictDictionaryInference = true
20+
strictSetInference = true
21+
deprecateTypingAliases = false
22+
enableExperimentalFeatures = false
23+
reportMissingTypeStubs = "error"
24+
reportMissingModuleSource = "warning"
25+
reportInvalidTypeForm = "error"
26+
reportMissingImports = "error"
27+
reportUndefinedVariable = "error"
28+
reportAssertAlwaysTrue = "none"
29+
reportInvalidStringEscapeSequence = "error"
30+
reportInvalidTypeVarUse = "error"
31+
reportSelfClsParameterName = "error"
32+
reportUnsupportedDunderAll = "error"
33+
reportUnusedExpression = "warning"
34+
reportWildcardImportFromLibrary = "error"
35+
reportAbstractUsage = "error"
36+
reportArgumentType = "error"
37+
reportAssertTypeFailure = "error"
38+
reportAssignmentType = "error"
39+
reportAttributeAccessIssue = "error"
40+
reportCallIssue = "error"
41+
reportGeneralTypeIssues = "error"
42+
reportInconsistentOverload = "error"
43+
reportIndexIssue = "error"
44+
reportInvalidTypeArguments = "error"
45+
reportNoOverloadImplementation = "error"
46+
reportOperatorIssue = "error"
47+
reportOptionalSubscript = "error"
48+
reportOptionalMemberAccess = "error"
49+
reportOptionalCall = "error"
50+
reportOptionalIterable = "error"
51+
reportOptionalContextManager = "error"
52+
reportOptionalOperand = "error"
53+
reportRedeclaration = "error"
54+
reportReturnType = "error"
55+
reportTypedDictNotRequiredAccess = "error"
56+
reportPrivateImportUsage = "warning"
57+
reportUnboundVariable = "error"
58+
reportUnhashable = "error"
59+
reportUnusedCoroutine = "warning"
60+
reportUnusedExcept = "error"
61+
reportFunctionMemberAccess = "error"
62+
reportIncompatibleMethodOverride = "error"
63+
reportIncompatibleVariableOverride = "error"
64+
reportOverlappingOverload = "error"
65+
reportPossiblyUnboundVariable = "error"
66+
reportConstantRedefinition = "error"
67+
reportDeprecated = "warning"
68+
reportDuplicateImport = "none"
69+
reportIncompleteStub = "error"
70+
reportInconsistentConstructor = "error"
71+
reportInvalidStubStatement = "error"
72+
reportMatchNotExhaustive = "error"
73+
reportMissingParameterType = "error"
74+
reportMissingTypeArgument = "error"
75+
reportPrivateUsage = "warning"
76+
reportTypeCommentUsage = "error"
77+
reportUnknownArgumentType = "error"
78+
reportUnknownLambdaType = "error"
79+
reportUnknownMemberType = "error"
80+
reportUnknownParameterType = "error"
81+
reportUnknownVariableType = "error"
82+
reportUnnecessaryCast = "warning"
83+
reportUnnecessaryComparison = "none"
84+
reportUnnecessaryContains = "none"
85+
reportUnnecessaryIsInstance = "none"
86+
reportUnusedClass = "warning"
87+
reportUnusedImport = "warning"
88+
reportUnusedFunction = "warning"
89+
reportUnusedVariable = "warning"
90+
reportUntypedBaseClass = "error"
91+
reportUntypedClassDecorator = "error"
92+
reportUntypedFunctionDecorator = "error"
93+
reportUntypedNamedTuple = "warning"
94+
reportCallInDefaultInitializer = "warning"
95+
reportImplicitOverride = "none"
96+
reportImplicitStringConcatenation = "warning"
1397
reportImportCycles = "error"
98+
reportMissingSuperCall = "none"
1499
reportPropertyTypeMismatch = "error"
15100
reportShadowedImports = "error"
16101
reportUninitializedInstanceVariable = "error"
17102
reportUnnecessaryTypeIgnoreComment = "warning"
103+
reportUnusedCallResult = "none"
18104

19105

20106
[tool.ruff]

src/async_utils/_paramkey.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def _make_key(
5050
/,
5151
*,
5252
_typ: Callable[[object], type] = type,
53-
_fast_types: set[type] = {int, str}, # noqa: B006
53+
_fast_types: set[type] = {int, str}, # noqa: B006 # pyright: ignore[reportCallInDefaultInitializer]
5454
) -> Hashable:
5555
key: tuple[t.Any, ...] = args
5656
if kwds:

0 commit comments

Comments
 (0)