Skip to content

Commit

Permalink
python/plane-tickets: 3rd iteration - py3.11 - pylint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vpayno committed Apr 5, 2024
1 parent 3aad757 commit c757a5f
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 130 deletions.
Binary file modified python/plane-tickets/.coverage
Binary file not shown.
22 changes: 10 additions & 12 deletions python/plane-tickets/.coverage.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" ?>
<coverage version="7.4.0" timestamp="1712287513036" lines-valid="38" lines-covered="38" line-rate="1" branches-valid="12" branches-covered="12" branch-rate="1" complexity="0">
<coverage version="7.4.0" timestamp="1712288392527" lines-valid="36" lines-covered="36" line-rate="1" branches-valid="12" branches-covered="12" branch-rate="1" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io/en/7.4.0 -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
Expand Down Expand Up @@ -31,24 +31,22 @@
<line number="40" hits="1"/>
<line number="43" hits="1"/>
<line number="59" hits="1"/>
<line number="60" hits="1"/>
<line number="61" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="62" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="63" hits="1"/>
<line number="65" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="66" hits="1"/>
<line number="68" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="69" hits="1"/>
<line number="68" hits="1"/>
<line number="71" hits="1"/>
<line number="74" hits="1"/>
<line number="83" hits="1"/>
<line number="80" hits="1"/>
<line number="81" hits="1"/>
<line number="83" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="84" hits="1"/>
<line number="86" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="87" hits="1"/>
<line number="86" hits="1"/>
<line number="89" hits="1"/>
<line number="92" hits="1"/>
<line number="102" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="103" hits="1"/>
<line number="105" hits="1"/>
<line number="99" hits="1" branch="true" condition-coverage="100% (2/2)"/>
<line number="100" hits="1"/>
<line number="102" hits="1"/>
</lines>
</class>
</classes>
Expand Down
5 changes: 1 addition & 4 deletions python/plane-tickets/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ def generate_seats(quantity: QuantityT) -> Generator[SeatT, Any, Any]:
Example: 3C, 3D, 4A, 4B
"""

letter: Generator[LetterT, Any, Any] = generate_seat_letters(quantity)
row: RowT = 0

for _ in range(1, quantity + 1):
seat: SeatT = next(letter)

for seat in generate_seat_letters(quantity):
if seat == "A":
row += 1

Expand Down
5 changes: 1 addition & 4 deletions python/plane-tickets/generators.py,cover
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@
> Example: 3C, 3D, 4A, 4B
> """

> letter: Generator[LetterT, Any, Any] = generate_seat_letters(quantity)
> row: RowT = 0

> for _ in range(1, quantity + 1):
> seat: SeatT = next(letter)

> for seat in generate_seat_letters(quantity):
> if seat == "A":
> row += 1

Expand Down
Loading

0 comments on commit c757a5f

Please sign in to comment.