Anders Kaseorg

Results 389 comments of Anders Kaseorg

I don’t have a problem with forcing meaning into the element—that helps us reserve the right to overhaul our design language later in a way that’s compatible with the intended...

Gaaah, we have some missing examples that result in empty tabs here.

> You can select classes and IDs with query selector too. I remember reading something about engines just using the fast-path internally for simple selectors. Evidence to the contrary, showing...

Bisecting mypy shows that both failures were first triggered by python/mypy@14418bc3d2c38b9ea776da6029e9d9dc6650b7ea: - python/mypy#15837

This was re-reported as - #2226 and seems to have been fixed in mypy 1.11.0: - python/mypy#17433

@dimitrilarue No, that’s the opposite of what I need. The extra classes from Pygments such as `` are important for styling, so I need to be able to tell markdown-it-py...

> I think the problem here is that *in general*, e.g. if there are other parameters also using `_T` in their type, the default value won't work. Wait. Why is...

> I believe what Anders is proposing is: > > 1. When checking a definition ignore the default value, but keep it around for later > 2. Run mypy's existing...

Yes, strictly speaking, you’re right about `_T = object` in the [first example](https://github.com/python/mypy/issues/3737#issuecomment-552840010). I’ve edited it to use invariant `List[_T]` types to avoid that possibility. The second example stands as...

@efagerberg `Optional` is not a workaround at all, neither for the caller side nor for the callee side. ```python from typing import Optional, TypeVar _T = TypeVar("_T") def foo(a: Optional[_T]...