Version 1.9.1
This release contains a couple bug fixes:
Folders without an __init__.py
or py.typed
file no longer cause errors
Mypy requires an __init__.py
file to tell it where the root of the project is, which can cause issues if your project doesn't have any of these files. A flag has been added when calling Mypy which fixes this.
Fix "list extend" (FURB113) false positive
Previously this check did not ensure that the .append()
function was called on a list
, meaning the following code would cause an error:
class Queue:
_queue: list
def __init__(self) -> None:
self._queue = []
def append(self, item) -> None:
self._queue.append(item)
q = Queue()
q.append(1) # Use `x.extend(...)` instead of repeatedly calling `x.append()`
q.append(2)
This has now been fixed.
What's Changed
- Add makefile recepie to update
.txt
file output by @dosisod in #164 - Fix duplicate module error when running by @dosisod in #165
- Fix FURB113 emitting error on any
append()
function call by @dosisod in #166 - Bump packages, make bug fix release by @dosisod in #167
Full Changelog: v1.9.0...v1.9.1