Akuli

Results 213 issues of Akuli

When adding an argument with `argparse.ArgumentParser.add_argument`, it is tempting to pass `type=bool` to create an option that is specified without a value, such as `--enable-foo`. This doesn't work, and in...

type-false-negative

The following prints `18446744073709551620` (as I discovered in https://github.com/python/cpython/issues/93077): ```python3 import io stream = io.TextIOWrapper(io.BytesIO(b'"")\r\nx\r\n')) stream.read(1) stream.read(1) stream.read(1) print('-----> tell:', stream.tell()) ``` This is not a bug. The documentation says...

topic-io

While tkinter is technically stdlib, it feels like a third-party package in a couple ways: - It's not always distributed with Python. The default Python installation on most linux distros...

project-discussion
topic-tkinter

I have some code that does: ``` self._canvas.create_rectangle( event.x, event.y, self._initial_drag_x, self._initial_drag_y, dash=5, outline="black", tags="selection_displayer_rect", ) ``` It fails to type check, unless I comment out `dash=5`, but it works...

topic-tkinter

**Bug Report** **To Reproduce** ```python3 def first() -> None: tag_name: str | dict[str, str] if isinstance(tag_name, dict): tag_name = tag_name.get("foo", "bar") reveal_type(tag_name) def second() -> None: tag_name: str | dict[str,...

bug
topic-type-narrowing

Some ways to call certain functions are just wrong, and are known to be a bug. For example, [passing type=bool to argparse's add_argument method doesn't work](https://stackoverflow.com/q/15008758). To make type checkers...

topic: feature

https://github.com/dateutil/dateutil/blob/7c5c98959bd0e9eea3c55fdf78bef3ae5b8c995e/src/dateutil/tz/tz.py#L1270-L1271 On Windows, you have to pass in an explicit `encoding="utf-8"` if you want the encoding to be UTF-8. The default encoding works fine as long as only ASCII characters...

https://github.com/TkinterEP/ttkthemes/blob/362da754b5da081b7f6e679775598345c0288574/ttkthemes/themed_tk.py#L53-L57 The `fonts` variable is not used anywhere after this code runs. Can we just delete it? If we have to keep it for backwards compatibility, we should at least...

It is now possible since #62

## Summary Checking `b.html` gives warning but checking `a.html b.html` does not. ## Steps to reproduce 1. Create the following files ``` $ head /tmp/*.html ==> /tmp/a.html /tmp/b.html

bug
help wanted