twisted / twisted/twisted

fix flake8 E731 do not assign a lambda expression, use a def

Open
#10,040 1 comment 0 reactions 1 assignee View on GitHub

@graingert is already working on this.

Since Jun 28, 2022.

core enhancement new priority-normal
Dominant language
Python
Stars
6k
Forks
1.2k
Avg merge
2d 10h
Merged PRs (30d)
10

Description

graingert's avatar @graingert reported
Trac ID trac#10040
Type enhancement
Created 2020-10-26 14:34:54Z

this is particularly useful under mypy as lambdas cannot be type annotated

should be a case of pipx run autopep8 --in-place -r --select=E731 and black

https://github.com/twisted/twisted/pull/1469

Searchable metadata
trac-id__10040 10040
type__enhancement enhancement
reporter__graingert graingert
priority__normal normal
milestone__None None
branch__ 
branch_author__ 
status__new new
resolution__None None
component__core core
keywords__None None
time__1603722894501768 1603722894501768
changetime__1603749286062616 1603749286062616
version__None None
owner__graingert graingert

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.