浏览代码

update pyright once again

Khaleel Al-Adhami 4 月之前
父节点
当前提交
a5526afaeb
共有 3 个文件被更改,包括 464 次插入481 次删除
  1. 462 479
      poetry.lock
  2. 1 1
      pyproject.toml
  3. 1 1
      reflex/vars/sequence.py

文件差异内容过多而无法显示
+ 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:

部分文件因为文件数量过多而无法显示