Skip to content

Commit 502da7d

Browse files
h-joocopybara-github
authored andcommitted
Add type annotation on abstract/abstract_utils.py, and also add CFGNode.program which were missing in the cfg.pyi.
PiperOrigin-RevId: 692920772
1 parent ac2f0dd commit 502da7d

File tree

4 files changed

+180
-89
lines changed

4 files changed

+180
-89
lines changed

pytype/abstract/_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
from collections.abc import Collection, Sequence
8-
from typing import TYPE_CHECKING
8+
from typing import TYPE_CHECKING, Literal
99

1010
from pytype import utils
1111
from pytype.abstract import abstract_utils
@@ -405,7 +405,7 @@ def init_subclass(
405405
def update_official_name(self, _: str) -> None:
406406
"""Update the official name."""
407407

408-
def is_late_annotation(self) -> bool:
408+
def is_late_annotation(self) -> Literal[False]:
409409
return False
410410

411411
def should_set_self_annot(self) -> bool:

0 commit comments

Comments
 (0)