Jelle Zijlstra

Results 129 issues of Jelle Zijlstra

BPO | [29847](https://bugs.python.org/issue29847) --- | :--- Nosy | @brettcannon, @pitrou, @serhiy-storchaka, @jstasiak, @JelleZijlstra, @DimitrisJim, @remilapeyre, @uriyyo PRs | python/cpython#13399python/cpython#19632 *Note: these values reflect the state of the issue at the...

type-bug
stdlib
3.10
3.9
3.8
3.7
expert-pathlib

pytest-xdist 3.0.2 was released today and broke our CI with a DeprecationWarning. On a quick look I couldn't figure out how to fix it (we don't use the `rsyncdir` option...

C: maintenance

Currently, the implementation of `is_type_comment()` looks like this: ``` def is_type_comment(leaf: Leaf, suffix: str = "") -> bool: """Return True if the given leaf is a special comment. Only returns...

T: bug
good first issue
F: comments

## Hello! Please read the following before commenting... If you're here to learn more about the proposed 2023 stable style or provide feedback, you're in the right place. Here's what...

T: enhancement
help wanted
T: design
C: maintenance

Fixes #3425. Fixes #3427.

skip news

``` % time black --diff ~/some/file.py All done! ✨ 🍰 ✨ 1 file would be left unchanged. black --diff ~/some/file.py 17.78s user 0.18s system 99% cpu 18.067 total % time...

C: performance
F: strings
C: preview style

``` % cat quash.py class X: def generate_shared_lib_init(self) -> None: emitter.emit_lines( "{", ( 'static PyModuleDef def = {{ PyModuleDef_HEAD_INIT, "{}", NULL, -1, NULL, NULL }};'.format( shared_lib_name(self.group_name) ) ), ) %...

T: bug
F: parentheses
F: strings
C: preview style

```python inline_comments_func2( " this part does not fit into a single line? " # x "it into parts that fit in line length.", ) ``` On 22.12.0: ``` % black...

T: bug
F: strings
C: preview style

```python def x(): """first line---------------------------------------------------------------------- second line----------------------------------------------------------------------""" ``` Crashes with Black 22.12.0: ``` % black --preview --diff tests/data/preview/docstring_preview.py -l 6 error: cannot format tests/data/preview/docstring_preview.py: INTERNAL ERROR: Black produced different code...

T: bug
F: docstrings
C: preview style

Code: ```python def multiline_backslash_2(): """ hey there \ """ ``` On Black 22.12.0: ``` % black --preview --diff tests/data/miscellaneous/docstring_no_string_normalization.py -l 18 error: cannot format tests/data/miscellaneous/docstring_no_string_normalization.py: INTERNAL ERROR: Black produced code...

T: bug
C: crash
F: docstrings
C: preview style