Wilfredo Sánchez Vega

Results 25 issues of Wilfredo Sánchez Vega

Add an `IOFount` class that makes a fount from a readable FLO. The code below works, but it's doing a blocking read on the data, and should be streaming instead....

Add `fountToBytes`, `bytesToFount` functions: ``` def fountToBytes(fount): # type: (IFount) -> Deferred[bytes] def collect(chunks): # type: (Iterable[bytes]) -> bytes return b"".join(chunks) d = fountToDeferred(fount) d.addCallback(collect) return d def bytesToFount(data): #...

Add some `async` methods to `typing_app.py` to verify that those work… and they do not: ```console src/klein/test/typing_app.py:87:6: error: Value of type variable "KleinRouteHandlerT" of function cannot be "Callable[[Application, IRequest], Coroutine[Any,...

bug

In https://github.com/twisted/klein/pull/471, I'm running into the following [error in CI](https://github.com/twisted/klein/runs/2097187159): ```console src/klein/_dihttp.py:62:16: error: Incompatible return value type (got "RequestURL", expected "IDependencyInjector") [return-value] return cls() ``` The [code in question](https://github.com/twisted/klein/blob/b46383c96ef5d0e9fbd186b3b47336feacd26bb1/src/klein/_dihttp.py#L62) is:...

In Twisted, the Deferred class has set [`__await__ = __iter__`](https://github.com/twisted/twisted/blob/2039f33e94348963cf0e0b5e1172d035351b6140/src/twisted/internet/defer.py#L920), where [`__iter__` is typed thusly](https://github.com/twisted/twisted/blob/2039f33e94348963cf0e0b5e1172d035351b6140/src/twisted/internet/defer.py#L894): ```python def __iter__(self) -> "Deferred[_DeferredResultT]": ``` Deferred, insofar as it has an `__iter__` method, is...

stubs: false positive
status: deferred