Skip to content

Commit

Permalink
Fix __all__ in stub
Browse files Browse the repository at this point in the history
  • Loading branch information
inducer committed Dec 26, 2024
1 parent 34ae7f9 commit c6bf1cd
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions starlark.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
from collections.abc import Sequence
from typing import Any, Callable, final

__all__: Sequence[str] = [
"AstModule",
"Dialect",
"DialectTypes",
"EvalSeverity",
"FileLoader",
"FrozenModule",
"Globals",
"LibraryExtension",
"Lint",
"Module",
"ResolvedFileSpan",
"ResolvedPos",
"ResolvedSpan",
"StarlarkError",
"eval",
"parse",
]

@final
class ResolvedPos:
line: int
Expand Down Expand Up @@ -96,9 +116,7 @@ class Module:
class FileLoader:
def __init__(self, load_func: Callable[[str], FrozenModule]) -> None: ...

def parse(
filename: str, content: str, dialect: Dialect | None = None
) -> AstModule: ...
def parse(filename: str, content: str, dialect: Dialect | None = None) -> AstModule: ...
def eval(
module: Module,
ast: AstModule,
Expand Down

0 comments on commit c6bf1cd

Please sign in to comment.