Anders Kaseorg

Results 179 issues of Anders Kaseorg

isort (5.10.1 or `main` at 485f8adcddc174117925b59bf9d913fd33d37984) fails with an unrecoverable exception `IndexError: list index out of range` on this odd but valid input without a trailing newline: ```python import os...

On this weird but valid input: ```python3 from os import \ name; print(name) ``` isort (5.10.1 or `main` at c6a41965247a858a0afd848fbebfca18b8983917) produces this invalid output: ```python3 from os import name, name;,...

The server was updated in zulip/zulip@a6fee2f18ef9d2ef6ac248e9ed82d580daff1a07 (`3.0-dev~1674`) and zulip/zulip@e701f208619b8b9b28a85f84ee16cf8d8df82b72 (`3.0-dev~1667`) to avoid relying on this wrapper. We no longer support servers older than 3.0, so we can delete it.

size: XL

size: L
has conflicts

Type arguments for a generic type alias must be provided at every use site, or the missing arguments will default to `Any`, which gives no type safety. Fixes #370.

This should give a mypy error, but doesn’t: ```python3 from dataclasses import dataclass from dataclasses_json import DataClassJsonMixin @dataclass class MyClass(DataClassJsonMixin): my_field: int x: str = MyClass.schema().load({"my_field": 0}) print(x.lower()) ``` In...

```python from dataclasses import dataclass, field from dataclasses_json import DataClassJsonMixin, Exclude, config @dataclass class MyClass(DataClassJsonMixin): my_field: int = field(metadata=config(exclude=Exclude.ALWAYS)) print(MyClass(0).to_dict()) # {} print(MyClass.schema().dump(MyClass(0))) # {'my_field': 0} ``` I expect `{}`...

api/v0

* The `exclude` callback takes one argument, not two. * Objects of type `Exclude` are not accepted. `ALWAYS` and `NEVER` have type `Callable`, not `Exclude`. * Class variables like `Exclude.ALWAYS`,...

The `spectron` TypeScript declarations copy the `RemoteMainInterface`, `BrowserWindow`, `WebContents` types from `electron`, but this leads to incorrect type errors because `spectron` changes all the methods on these interfaces return `Promise`s....