Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/fable-library-py/fable_library/async_.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def binder(_: Any | Unit = UNIT) -> Async[None]:

def parallel[T](computations: IEnumerable_1[Async[T]]) -> Async[Array[T]]:
def delayed() -> Async[Array[T]]:
tasks: Iterable[Awaitable[T]] = map(start_as_task, computations) # type: ignore[arg-type]
tasks: Iterable[Awaitable[T]] = map(start_as_task, computations) # type: ignore[arg-type] # ty: ignore[invalid-assignment, invalid-argument-type]
all: Future[list[T]] = asyncio.gather(*tasks)

def to_array(results: list[T]) -> Async[Array[T]]:
Expand Down
4 changes: 2 additions & 2 deletions src/fable-library-py/fable_library/bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ class StringableBase:
__slots__ = ()

def __str__(self) -> str:
return self.ToString() # type: ignore[attr-defined]
return self.ToString() # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]

def __repr__(self) -> str:
return self.ToString() # type: ignore[attr-defined]
return self.ToString() # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]


class EquatableBase(ABC):
Expand Down
2 changes: 1 addition & 1 deletion src/fable-library-py/fable_library/core/array.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class FSharpArray[T](MutableSequence[T]):
# Instance methods (alphabetically sorted)
def add_in_place(self, value: T) -> None: ...
def add_range_in_place(self, values: Iterable[T]) -> None: ...
def append(self, array2: FSharpArray[T], cons: FSharpCons[T] | None = None) -> FSharpArray[T]: ... # type: ignore[override]
def append(self, array2: FSharpArray[T], cons: FSharpCons[T] | None = None) -> FSharpArray[T]: ... # type: ignore[override] # ty: ignore[invalid-method-override]
def average(self, averager: IGenericAverager[T]) -> T: ...
def average_by[U](self, projection: Callable[[T], U], averager: IGenericAverager[U]) -> U: ...
def choose[U](self, chooser: Callable[[T], Option[U]], cons: FSharpCons[U] | None = None) -> FSharpArray[U]: ...
Expand Down
4 changes: 2 additions & 2 deletions src/fable-library-py/fable_library/int32.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def div_rem[T: SupportsInt](x: T, y: T, out: FSharpRef[T]) -> T: ...

def div_rem[T: SupportsInt](x: T, y: T, out: FSharpRef[T] | None = None) -> T | tuple[T, T]:
# Rust wrapper types already use truncated division and remainder
q = x // y # type: ignore[operator]
r = x % y # type: ignore[operator]
q = x // y # type: ignore[operator] # ty: ignore[unsupported-operator]
r = x % y # type: ignore[operator] # ty: ignore[unsupported-operator]
if out is None:
return (q, r)
out.contents = r
Expand Down
Loading