]> xn--ix-yja.es Git - alex.git/commitdiff
Make basedpyright less fan of type hints
authorAlex <alex.corcoles@veecle.io>
Tue, 29 Apr 2025 14:49:56 +0000 (16:49 +0200)
committeralexpdp7 <alex@corcoles.net>
Tue, 29 Apr 2025 14:54:11 +0000 (16:54 +0200)
emacs/emacs.el

index a09582be4cd9b7c13f627a2f8a8f4f273933dd24..3db0dc45f3cda81735e2c38128c26461f6c124dc 100644 (file)
 
 ;; The default setting is higher than strict, and complains (amongst others) about missing type annotations
 (setq-default eglot-workspace-configuration
-              '(:basedpyright (:typeCheckingMode "strict")))
+              '(:basedpyright (:typeCheckingMode "strict")
+                              :basedpyright.analysis (:diagnosticSeverityOverrides (
+                                                                                    :reportMissingParameterType "none"
+                                                                                    :reportUnknownParameterType "none"
+                                                                                    :reportUnknownVariableType "none"
+                                                                                    :reportUnknownMemberType "none"
+                                                                                    :reportUnknownArgumentType "none"))))
 
 ;; YAML support
 (use-package yaml-mode :ensure t)