Akuli

Results 358 comments of Akuli
trafficstars

>``` >for x in ('foo', 'bar'): > x = x.upper() # str is not compatible with a literal type > print(x) >``` **Why** would anyone want to do this? If...

``` for x in ('foo', 'bar'): print(x) x = x.upper() print(x) ``` mypy can already "narrow down" the type of a local variable. For example, if `foo` has type `Any`...

that actually won't work with modifications in typeshed only: ``` def literal_values(lit: Type[T]) -> T: return cast(Iterable[T], get_args(lit)) reveal_type(literal_values(Literal['foo', 'bar'])) # ```

We should probably check for `Callable[something, None]` as well.

Does this solve a practical problem? Has someone actually used a `BytesIO` argument type, without being aware of the meaning, when working on a project that uses this plugin? It...

"Temporary" workaround: If I drag two 2PDT switches on top of each other so that they partially overlap, it looks like a 3PDT switch.

We could take the grid/pack/place tutorial from my tkinter-tutorial repo: https://github.com/Akuli/tkinter-tutorial/blob/master/geometry-managers.md

>a web scraping project On Debian-based linux distros, you can `sudo apt install tk-doc` and do things like `man 3tk label` to look at the Tk manuals. They are the...

Are there logs of the build failing somewhere?

Have you tried `python3` or `pypy3` instead of `python`? It's trying to use 2.7 here.