Anton Agestam
Anton Agestam
```python from phantom.datetime import TZAware import datetime t = TZAware.parse(datetime.datetime.now(tz=datetime.timezone.utc)) u = t.replace(tzinfo=None) reveal_type(u) # -> TZAware ```
With `Future.error_on_callbacks == False`, the default, errors raised in callbacks are suppressed (even critical ones like `MemoryError`). The only feasible way to change this behavior is currently to override the...
## What is the purpose of the change Parsing an enum should resolve to the default symbol when the symbol is not known to the reader. This raised a SchemaResolutionError....
Let's document what versioning scheme we follow. [This closed ticket](https://github.com/Aiven-Open/karapace/issues/245#issuecomment-895842695) hints at following semantic versioning, but there doesn't seem to be anything put in documentation from that. [This other closed...
The main goal is to increase type coverage. The `Location` class is turned into a dataclass to simplify things and gain immutability. It's `.get()` method needs an overload to type...
### What happened? Another bug found while adding type-hints. `BytesIO.write()` does not accept an int, which is always the result of subscripting a `bytearray`. There does not seem to be...
### About this change - What it does Fixes #651. I have only looked at the functions locally. I'll leave this in draft until further investigation into why the code...
There's lots of places where it's challenging to add static typing where we have to deal with `Dependency` and `TypedSchema`, and we need to add assertions on their contained schemas....
### What happened? Discovered when working on static type checking coverage. On this line there's a call to `references.json()` where `references: Reference`, however `Reference` has no `.json()` method. https://github.com/aiven/karapace/blob/42b14c71543b878c42c11025ab266122d61550d3/karapace/serialization.py#L92 I...