Skip to content

Commit

Permalink
fix outdated comments
Browse files Browse the repository at this point in the history
  • Loading branch information
tserg committed Dec 28, 2023
1 parent 20c773d commit 9ae1344
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/functional/codegen/types/numbers/test_signed_ints.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def foo(x: {typ}, y: {typ}) -> bool:
fn = COMPARISON_OPS[op]
c = get_contract(code_1)

# note: constant folding is tested in tests/ast/folding
# note: constant folding is tested in tests/unit/ast/nodes
special_cases = [
lo,
lo + 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def foo(x: {typ}, y: {typ}) -> bool:

lo, hi = typ.ast_bounds

# note: constant folding is tested in tests/ast/folding
# note: folding is tested in tests/unit/ast/nodes

special_cases = [0, 1, 2, 3, hi // 2 - 1, hi // 2, hi // 2 + 1, hi - 2, hi - 1, hi]
xs = special_cases.copy()
Expand Down
3 changes: 1 addition & 2 deletions vyper/semantics/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,7 @@ def get_exact_type_from_node(self, node, include_type_exprs=False):
def get_possible_types_from_node(self, node, include_type_exprs=False):
"""
Find all possible types for a given node.
If the node's metadata contains type information propagated from constant folding,
then that type is returned.
If the node's metadata contains type information, then that type is returned.
Arguments
---------
Expand Down

0 comments on commit 9ae1344

Please sign in to comment.