Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add type annotation on abstract/abstract_utils.py, and also add CFGNode.program which were missing in the cfg.pyi. #1830

Merged
merged 1 commit into from
Nov 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pytype/abstract/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"""

from collections.abc import Collection, Sequence
from typing import TYPE_CHECKING
from typing import TYPE_CHECKING, Literal

from pytype import utils
from pytype.abstract import abstract_utils
Expand Down Expand Up @@ -405,7 +405,7 @@ def init_subclass(
def update_official_name(self, _: str) -> None:
"""Update the official name."""

def is_late_annotation(self) -> bool:
def is_late_annotation(self) -> Literal[False]:
return False

def should_set_self_annot(self) -> bool:
Expand Down
Loading
Loading