#3975 closed defect (fixed)

Conditional that could always be truthy.

Reported by: daniellee Owned by: daniellee
Priority: minor Milestone: undecided
Component: code-frontend-web Version: n/a
Keywords: Cc:
Launchpad Bug:

Description

While working with mypy. I came across an error that a conditional that checks for a type: if bytes. It does not specify the check on any variable or value.

Change History (1)

comment:1 Changed at 2023-02-16T00:09:23Z by GitHub <noreply@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 32dc201/trunk:

Merge pull request #1258 from danielzwlee/truthyconditional-varnamechange

Fixes to truthy conditional and variable names same as built-in

Fixes: ticket:3975
Fixes: ticket:3976

Note: See TracTickets for help on using tickets.