Ver código fonte

update pyright once again

Khaleel Al-Adhami 4 meses atrás
pai
commit
a5526afaeb
3 arquivos alterados com 464 adições e 481 exclusões
  1. 462 479
      poetry.lock
  2. 1 1
      pyproject.toml
  3. 1 1
      reflex/vars/sequence.py

Diferenças do arquivo suprimidas por serem muito extensas
+ 462 - 479
poetry.lock


+ 1 - 1
pyproject.toml

@@ -57,7 +57,7 @@ typing_extensions = ">=4.6.0"
 [tool.poetry.group.dev.dependencies]
 pytest = ">=7.1.2,<9.0"
 pytest-mock = ">=3.10.0,<4.0"
-pyright = ">=1.1.229,<=1.1.390"
+pyright = ">=1.1.229,<=1.1.391"
 darglint = ">=1.8.1,<2.0"
 dill = ">=0.3.8"
 toml = ">=0.10.2,<1.0"

+ 1 - 1
reflex/vars/sequence.py

@@ -777,7 +777,7 @@ class LiteralSliceVar(CachedVarOperation, LiteralVar, SliceVar):
         Returns:
             The name of the var.
         """
-        return f"[{str(LiteralVar.create(self._var_value.start))}, {str(LiteralVar.create(self._var_value.stop))}, {str(LiteralVar.create(self._var_value.step))}]"
+        return f"[{LiteralVar.create(self._var_value.start)!s}, {LiteralVar.create(self._var_value.stop)!s}, {LiteralVar.create(self._var_value.step)!s}]"
 
     @cached_property_no_lock
     def _cached_get_all_var_data(self) -> VarData | None:

Alguns arquivos não foram mostrados porque muitos arquivos mudaram nesse diff