Zac Hatfield-Dodds
Zac Hatfield-Dodds
Given a file containing a backslash preceeded and followed by any number of newlines, Black ae5588 and 19.3b0 throw `blib2to3.pgen2.tokenize.TokenError: 'EOF in multi-line statement', (2, 0)`. I consider this a...
```python weird = "pass #\r#\n" exec(weird) # works, as does `compile` etc. black.format_str(weird, mode=black.FileMode()) # fails with `black.InvalidInput` ``` Operating system: Windows Python version: 3.7.3 *Black* version: 19.3b0 Does also...
Running Black on the following code makes no changes: ```python ( "whatever" == "a very long string broken across two lines. " "If you put this on one line it...
Running `flake8-return` with Python 3.7, I get an `R504` error for the following code: ```python def close(self): any_failed = False for task in self.tasks: try: task() except BaseException: any_failed =...
When I'm getting started, I often have a module full of type-annotated code but no CrossHair compatible docstrings. As a quick way to get started, it would be great to...
Closes #2388
https://github.com/python-trio/trio/blob/077e8fc3f1634b42ef5024814898439d8a8430d4/docs/source/reference-core.rst#L92-L95 Does this mean *exactly* one checkpoint after the last iteration, or *at least* one? I'm pretty sure it's the latter but that's not entirely obvious from reading, and adding...
Sometimes, you might have code which needs to raise *multiple* exceptions - for example if you retried an operation, had an error in async or cleanup code, or found [multiple...
[RFC 5234](https://tools.ietf.org/html/rfc5234) describes the standard grammar format for internet standards, such as the notoriously-hard-to-validate email addresses. Because this standard is a dialect of EBNF and does not allow for embedded...
TODO: - [x] Preliminary support for `integers()` - [x] Apply filters to each sub-strategy of a `st.one_of()`, rather than the top level - [x] AST-based analysis of lambdas - [x]...