Skip to content

Commit

Permalink
insignificant changes (#645)
Browse files Browse the repository at this point in the history
* insignificant changes
  • Loading branch information
tzaffi committed Jan 23, 2023
1 parent 8752ad5 commit 939cf29
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
10 changes: 5 additions & 5 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
ignore =
E203,
E241,
W291,
E302,
E501,
W503,
E741,
W291,
W503,

per-file-ignores =
pyteal/compiler/optimizer/__init__.py: F401
examples/application/abi/algobank.py: F403, F405
examples/application/asset.py: F403, F405
examples/application/opup.py: F403, F405
Expand All @@ -19,11 +18,12 @@ per-file-ignores =
examples/signature/basic.py: F403, F405
examples/signature/dutch_auction.py: F403, F405
examples/signature/periodic_payment_deploy.py: F403, F405
examples/signature/recurring_swap.py: F403, F405
examples/signature/split.py: F403, F405
examples/signature/periodic_payment.py: F403, F405
examples/signature/recurring_swap_deploy.py: F403, F405
examples/signature/recurring_swap.py: F403, F405
examples/signature/split.py: F403, F405
pyteal/__init__.py: F401, F403
pyteal/compiler/optimizer/__init__.py: F401
pyteal/ir/ops.py: E221
tests/unit/module_test.py: F401, F403

Expand Down
8 changes: 4 additions & 4 deletions pyteal/ast/bytes.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import cast, overload, TYPE_CHECKING
from typing import TYPE_CHECKING, cast, overload

from pyteal.ast.leafexpr import LeafExpr
from pyteal.errors import TealInputError
from pyteal.ir import Op, TealBlock, TealOp
from pyteal.types import TealType, valid_base16, valid_base32, valid_base64
from pyteal.util import escapeStr
from pyteal.ir import TealOp, Op, TealBlock
from pyteal.errors import TealInputError
from pyteal.ast.leafexpr import LeafExpr

if TYPE_CHECKING:
from pyteal.compiler import CompileOptions
Expand Down
2 changes: 1 addition & 1 deletion pyteal/compiler/optimizer/optimizer.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Final, Optional, Set

from pyteal.ast import ScratchSlot
from pyteal.ir import TealBlock, TealOp, Op
from pyteal.errors import TealInternalError, verifyProgramVersion
from pyteal.ir import Op, TealBlock, TealOp


class OptimizeOptions:
Expand Down
6 changes: 3 additions & 3 deletions pyteal/ir/tealconditionalblock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Optional, List
from typing import List

from pyteal.ir.tealop import TealOp
from pyteal.ir.tealblock import TealBlock
Expand All @@ -9,8 +9,8 @@ class TealConditionalBlock(TealBlock):

def __init__(self, ops: List[TealOp]) -> None:
super().__init__(ops)
self.trueBlock: Optional[TealBlock] = None
self.falseBlock: Optional[TealBlock] = None
self.trueBlock: TealBlock | None = None
self.falseBlock: TealBlock | None = None

def setTrueBlock(self, block: TealBlock) -> None:
"""Set the block that this one should branch to if its condition is true."""
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def overwrite(regen: str):
"The __init__.pyi needs to be regenerated. Please run scripts/generate_init.py"
)
sys.exit(1)
print("No changes in __init__.py")
print("No changes in __init__.pyi")
sys.exit(0)

overwrite(regen)

0 comments on commit 939cf29

Please sign in to comment.