From af18fe206542a60064eada22f88caa088e38837e Mon Sep 17 00:00:00 2001 From: Jonas Rinke Date: Sat, 2 Dec 2023 15:44:34 +0100 Subject: [PATCH 1/2] Fixed pyenv version syntax --- scripts/onCreateCommand.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scripts/onCreateCommand.sh b/scripts/onCreateCommand.sh index f42a4ff..dfbad6c 100644 --- a/scripts/onCreateCommand.sh +++ b/scripts/onCreateCommand.sh @@ -15,14 +15,13 @@ curl https://sh.rustup.rs -sSf | bash -s -- -y echo 'source $HOME/.cargo/env' >> ~/.bashrc # Install Python via pyenv . -pyenv install 3.8:latest 3.9:latest 3.10:latest 3.11:latest 3.12:latest +pyenv install 3.8 3.9 3.10 3.11 3.12 # Set default Python version to 3.8 . -pyenv global 3.8:latest +pyenv global 3.8 # Create Virutal environment. pyenv exec python3.8 -m venv .venv # Activate Virtual environment. source /workspaces/lsprotocol/.venv/bin/activate - From 1ea09d496cc0c8a1cc1d35ebe382a460e1d6767c Mon Sep 17 00:00:00 2001 From: Jonas Rinke Date: Tue, 12 Dec 2023 20:31:52 +0100 Subject: [PATCH 2/2] Reformatting --- generator/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generator/model.py b/generator/model.py index 6bc8a0b..8558765 100644 --- a/generator/model.py +++ b/generator/model.py @@ -415,7 +415,7 @@ def get_inner_types(self) -> List[Type]: def convert_map_key( - key_info: Dict[str, Any] + key_info: Dict[str, Any], ) -> Union[BaseMapKeyType, ReferenceMapKeyType]: if key_info["kind"] == "base": return BaseMapKeyType(**key_info)