Emilio Graff
Emilio Graff
What is the recommendation to handle cases like this? ```python def my_sort(items: Sequence[int], also_return_indices: bool) -> Union[List[int], Tuple[List[int], List[int]]] sorted_items, indices = ... # bunch of code if also_return_indices: return...
> Use overload + Literal, should work for most cases. > > (Otherwise your fallback is the same as everyone else's, use Any) Do you have an example or link...
It seems `autopep8` doesn't support in-line comments in the configuration, either. It's confusing that it's set to share the `flake8` section in `setup.cfg` when it can't parse it the way...
@patrick-kidger I understand how the case of `TensorType[..., "a", ...]` is arguably impossible to resolve, but did you just make an arbitrary decision to support `...` only on the left?...
Just FYI, it seems a lot of fonts don't respect / don't properly define the width of some / all unicode characters. Try printing several knights / rooks on the...
I'm seeing the same with Python docstrings. I'm using v1.14.0. I've found that the issue only exists if there's a blank line above the indented section where it stops working:...
> hi! thanks for the input. so i did implement qt6 in a similar fashion to qt5. now gui qt6 runs from jlab for example without interrupting the kernel. however...
Will do; thanks @tacaswell - you definitely made some changes I'll adopt.
A couple of related examples: #### Forgotten `self` ```python class Boo: def forgot_self(an_arg: int) -> None: ... ``` The `mypy` error "Self argument missing for non-static method" spans the entire...
> I would start by grepping for the error message to find where it's raised. Then (possibly going a few levels up the call stack) you should be able to...