;ELC   
;;; Compiled
;;; in Emacs version 29.3
;;; with all optimizations.



(byte-code "\301\302!\210\301\303!\210\301\304!\210\301\305!\210\306\307\310\311\312\302\313\314\313\315&	\210\316\317\320\321\322DD\323\324\325\312\307&\210\316\326\320\321\327DD\330\324\331\312\307&\210\316\332\320\321\333DD\334\324\335\312\307&\210\316\336\320\321\337DD\340\324\335\312\307&\210\316\341\320\321\342DD\343\324\335\312\307&\210\316\344\320\321\345DD\346\324\347\312\307&\210\316\350\320\321\351DD\352\324\353\312\307&\210\316\354\320\321\355DD\356\324\357\312\307&\210\316\360\320\321\361DD\362\324\335\312\307&\210\316\363\320\321\364DD\365\324\366\312\307&\210\367\363!\210\316\370\320\321\371DD\372\324\335\312\307&\210\316\373\320\321\374DD\375\324\376\312\307&\210\316\377\320\321\201@ DD\201A \324\201B \312\307&\210\316\201C \320\321\201D DD\201E \324\335\312\307&\210\316\201F \320\321\201G DD\201H \324\201I \312\307&\210\316\201J \320\321\201K DD\201L \324\335\312\307&\210\316\201M \320\321\201N DD\201O \324\201P \312\307&\210\316\201Q \320\321\201R DD\201S \312\307\324\201T \201U \201V \201W \201X \201Y \201Z \201[ \201\\ \201] \201^ \201_ \201` F\257\257&\210\316\201a \320\321\201b DD\201c \324\335\312\307&\207" [json-false require lsp-mode dash ht cl-lib custom-declare-group lsp-pyright nil "LSP support for python using the Pyright Language Server." :group :link (url-link "https://github.com/microsoft/pyright") (url-link "https://github.com/DetachHead/basedpyright") custom-declare-variable lsp-pyright-langserver-command funcall function #[0 "\300\207" ["pyright"] 1 #1=""] "Choose whether to use Pyright or the BasedPyright fork." :type (choice (const "pyright") (const "basedpyright")) lsp-pyright-langserver-command-args #[0 "\300\207" [("--stdio")] 1 #1#] "Command to start pyright-langserver." (repeat string) lsp-pyright-disable-language-services #[0 "\300\207" [nil] 1 #1#] "Disables all language services except for \"hover\"." boolean lsp-pyright-disable-organize-imports #[0 "\300\207" [nil] 1 #1#] "Disables the \"Organize Imports\" command." lsp-pyright-disable-tagged-hints #[0 "\300\207" [nil] 1 #1#] "Disables grayed out special hint diagnostics tags." lsp-pyright-diagnostic-mode #[0 "\300\207" ["openFilesOnly"] 1 #1#] "Determines pyright diagnostic mode.\nWhether pyright analyzes (and reports errors for) all files\nin the workspace, as indicated by the config file.\nIf this option is set to \"openFilesOnly\", pyright analyzes only open files." (choice (const "openFilesOnly") (const "workspace")) lsp-pyright-type-checking-mode #[0 "\300\207" ["standard"] 1 #1#] "Specifies the default rule set to use.\n\n\"off\" disables all type-checking rules, but Python syntax and semantic\nerrors are still reported. \"all\" reports all errors in basedpyright,\nbut is not supported by pyright. " (choice (const :tag "Off" "off") (const :tag "Basic" "basic") (const :tag "Standard" "standard") (const :tag "Strict" "strict") (const :tag "All (basedpyright only)" "all")) lsp-pyright-log-level #[0 "\300\207" ["info"] 1 #1#] "Determines the default log level used by pyright.\nThis can be overridden in the configuration file." (choice (const "error") (const "warning") (const "info") (const "trace")) lsp-pyright-auto-search-paths #[0 "\300\207" [t] 1 #1#] "Determines whether pyright automatically adds common search paths.\ni.e: Paths like \"src\" if there are no execution environments defined in the\nconfig file." lsp-pyright-extra-paths #[0 "\300\207" [[]] 1 #1#] "Paths to add to the default execution environment extra paths.\nIf there are no execution environments defined in the config file." lsp-string-vector make-variable-buffer-local lsp-pyright-auto-import-completions #[0 "\300\207" [t] 1 #1#] "Determines whether pyright offers auto-import completions." lsp-pyright-venv-path #[0 "\300\207" [nil] 1 #1#] "Path to folder with subdirectories that contain virtual environments.\nVirtual Envs specified in pyrightconfig.json will be looked up in this path." (choice (const :tag "None" nil) file) lsp-pyright-venv-directory #[0 "\300\207" [nil] 1 #1#] "Folder with subdirectories that contain virtual environments.\nVirtual Envs specified in pyrightconfig.json will be looked up in this path." (choice (const :tag "None" nil) directory) lsp-pyright-multi-root #[0 "\300\207" [t] 1 #1#] "If non nil, lsp-pyright will be started in multi-root mode." lsp-pyright-python-executable-cmd #[0 "\300\207" ["python"] 1 #1#] "Command to specify the Python command for pyright.\nSimilar to the `python-shell-interpreter', but used only with mspyls.\nUseful when there are multiple python versions in system.\ne.g, there are `python2' and `python3', both in system PATH,\nand the default `python' links to python2,\nset as `python3' to let ms-pyls use python 3 environments." string lsp-pyright-prefer-remote-env #[0 "\300\207" [t] 1 #1#] "If non nil, lsp-pyright will prefer remote python environment.\nOnly available in Emacs 27 and above." lsp-pyright-python-search-functions #[0 "\300\207" [(lsp-pyright--locate-python-venv lsp-pyright--locate-python-python)] 1 #1#] "List of functions to search for python executable." list lsp-pyright-diagnostic-severity-overrides #[0 "\300\207" [nil] 1 #1#] "Overrides certain rules severity leve l" alist :key-type (string :tag "Rule Name") :value-type choice (const :tag "No Error" "none") (const :tag "Warning" "warning") (const :tag "Information" "information") (const :tag "Error" "error") (const :tag "An error is generated" t) const :tag "No error is generated" lsp-pyright-basedpyright-inlay-hints-variable-types #[0 "\300\207" [t] 1 #1#] "Whether to show inlay hints on assignments to variables.\n\nBasedpyright only."] 21)
(byte-code "\300\301\302\303\304DD\305\306\307\310\311&\210\300\312\302\303\313DD\314\306\307\310\311&\210\300\315\302\303\316DD\317\306\307\310\311&\207" [custom-declare-variable lsp-pyright-basedpyright-inlay-hints-call-argument-names funcall function #[0 "\300\207" [t] 1 #1=""] "Whether to show inlay hints on function arguments.\n\nBasedpyright only." :type boolean :group lsp-pyright lsp-pyright-basedpyright-inlay-hints-function-return-types #[0 "\300\207" [t] 1 #1#] "Whether to show inlay hints on function return types.\n\nBasedpyright only." lsp-pyright-basedpyright-inlay-hints-generic-types #[0 "\300\207" [nil] 1 #1#] "Whether to show inlay hints on inferred generic types.\n\nBasedpyright only."] 8)#@55 Look for virtual environments local to the workspace.
(defalias 'lsp-pyright--locate-venv #[0 "\2065 	\203 \303\n	\"\211\205 \211	P\262\2065 \303\n\304\"\211\205# \211\305P\262\2065 \303\n\306\"\211\2053 \211\307P\262\207" [lsp-pyright-venv-path lsp-pyright-venv-directory default-directory locate-dominating-file "venv/" "venv" ".venv/" ".venv"] 3 (#$ . 6451)])#@68 Find a python executable based on the current virtual environment.
(defalias 'lsp-pyright--locate-python-venv #[0 "\300\301\302\303 \"!\207" [executable-find f-expand "bin/python" lsp-pyright--locate-venv] 4 (#$ . 6825)])#@70 Find a python executable based on the version of python on the PATH.
(defalias 'lsp-pyright--locate-python-python #[0 "\303Y\203 \304	\n\"\207\304	!\207" [emacs-major-version lsp-pyright-python-executable-cmd lsp-pyright-prefer-remote-env 27 executable-find] 3 (#$ . 7052)])#@49 Find a python executable cmd for the workspace.
(defalias 'lsp-pyright-locate-python #[0 "\301\302\"\207" [lsp-pyright-python-search-functions cl-some funcall] 3 (#$ . 7334)])#@100 Log begin progress information.
Current LSP WORKSPACE should be passed in.

(fn WORKSPACE &rest _)
(defalias 'lsp-pyright--begin-progress-callback #[385 "\203< \303!\n>\204 \304\305\306D\"\210\307H\310\2039 \211A\262\242\311!\2031 r\211q\210\312 )\210\210\211T\262\202 )\266\313\314!\207" [lsp-progress-via-spinner lsp--cur-workspace cl-struct-lsp--workspace-tags type-of signal wrong-type-argument lsp--workspace 9 0 buffer-live-p lsp--spinner-start lsp-log "Pyright language server is analyzing..."] 7 (#$ . 7517)])#@112 Log report progress information.
First element of PARAMS will be passed into `lsp-log'.

(fn WORKSPACE PARAMS)
(defalias 'lsp-pyright--report-progress-callback #[514 "\300!\205 \211G\301V\205 \302\301H!\207" [arrayp 0 lsp-log] 5 (#$ . 8055)])#@98 Log end progress information.
Current LSP WORKSPACE should be passed in.

(fn WORKSPACE &rest _)
(defalias 'lsp-pyright--end-progress-callback #[385 "\203< \303!\n>\204 \304\305\306D\"\210\307H\310\2039 \211A\262\242\311!\2031 r\211q\210\312 )\210\210\211T\262\202 )\266\313\314!\207" [lsp-progress-via-spinner lsp--cur-workspace cl-struct-lsp--workspace-tags type-of signal wrong-type-argument lsp--workspace 9 0 buffer-live-p lsp--spinner-stop lsp-log "Pyright language server is analyzing...done"] 7 (#$ . 8307)])#@37 Organize imports in current buffer.
(defalias 'lsp-pyright-organize-imports #[0 "\301\302P\303\304\305 P!\"\207" [lsp-pyright-langserver-command lsp-send-execute-command ".organizeimports" vector "file://" buffer-file-name] 5 (#$ . 8843) nil])
(byte-code "\302\303P\304B\305P\306B\307P\310B\311P\312B\313P\314B\315BBBBB!\210\316\317\320\321PD\322\323\324\321P\257#\210\325\326\327\330\331!\332\333\334\317\335	\336\337\340\341\342\343\344\345\346\347\"\350\351P\352#\210\350\353P\354#\210\350\355P\356#\210\211\262&!\210\325\326\327\357\360!\332\361\334\362\335	\363\364\336\365\340\366\344\345\346\347\"\350\351P\352#\210\350\353P\354#\210\350\355P\356#\210\211\262&!\210\367\370!\207" [lsp-pyright-langserver-command lsp-pyright-multi-root lsp-register-custom-settings ".disableLanguageServices" (lsp-pyright-disable-language-services t) ".disableOrganizeImports" (lsp-pyright-disable-organize-imports t) ".disableTaggedHints" (lsp-pyright-disable-tagged-hints t) ".typeCheckingMode" (lsp-pyright-type-checking-mode) ".analysis.diagnosticSeverityOverrides" ((lambda nil (ht-from-alist lsp-pyright-diagnostic-severity-overrides))) (("python.analysis.diagnosticSeverityOverrides" (lambda nil (ht-from-alist lsp-pyright-diagnostic-severity-overrides))) ("basedpyright.analysis.inlayHints.variableTypes" lsp-pyright-basedpyright-inlay-hints-variable-types t) ("basedpyright.analysis.inlayHints.callArgumentNames" lsp-pyright-basedpyright-inlay-hints-call-argument-names t) ("basedpyright.analysis.inlayHints.functionReturnTypes" lsp-pyright-basedpyright-inlay-hints-function-return-types t) ("basedpyright.analysis.inlayHints.genericTypes" lsp-pyright-basedpyright-inlay-hints-generic-types t) ("python.analysis.typeCheckingMode" lsp-pyright-type-checking-mode) ("python.analysis.autoImportCompletions" lsp-pyright-auto-import-completions t) ("python.analysis.diagnosticMode" lsp-pyright-diagnostic-mode) ("python.analysis.logLevel" lsp-pyright-log-level) ("python.analysis.autoSearchPaths" lsp-pyright-auto-search-paths t) ("python.analysis.extraPaths" lsp-pyright-extra-paths) ("python.pythonPath" lsp-pyright-locate-python) ("python.venvPath" (lambda nil (or lsp-pyright-venv-path "")))) lsp-dependency pyright :system "-langserver" :npm :package :path lsp-register-client make-lsp-client :new-connection lsp-stdio-connection #[0 "\301\302!B\207" [lsp-pyright-langserver-command-args lsp-package-path pyright] 2] :major-modes (python-mode python-ts-mode) :server-id :multi-root :priority 2 :initialized-fn #[257 "\211\301\302\303\304\"!)\207" [lsp--cur-workspace lsp--set-configuration make-hash-table :test equal] 5 "\n\n(fn WORKSPACE)"] :download-server-fn #[1028 "\300\301#\207" [lsp-package-ensure pyright] 8 "\n\n(fn CLIENT CALLBACK ERROR-CALLBACK UPDATE?)"] :notification-handlers make-hash-table :test equal puthash "/beginProgress" lsp-pyright--begin-progress-callback "/reportProgress" lsp-pyright--report-progress-callback "/endProgress" lsp-pyright--end-progress-callback lsp-tramp-connection #[0 "\302P	B\207" [lsp-pyright-langserver-command lsp-pyright-langserver-command-args "-langserver"] 2] (python-mode python-ts-mode) pyright-remote :remote? t 1 #[257 "\211\301\302\303\304\"!)\207" [lsp--cur-workspace lsp--set-configuration make-hash-table :test equal] 5 "\n\n(fn WORKSPACE)"] provide lsp-pyright] 22)
