-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from mkzeender/big-static-typing-changes
Big static typing changes
- Loading branch information
Showing
32 changed files
with
804 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import sys | ||
|
||
from autohotpy import ahk as _ahk | ||
|
||
sys.modules[__name__] = _ahk # type: ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# ---------- | ||
# Primitives | ||
# ---------- | ||
from typing import Any as Any | ||
from autohotpy.static_typing.classes import ( | ||
Primitive as Primitive, | ||
Number as Number, | ||
VarRef as VarRef, | ||
) | ||
|
||
Integer = int | ||
Float = float | ||
String = str | ||
|
||
# ------- | ||
# Objects | ||
# ------- | ||
from autohotpy.static_typing.classes.object_ import Object as Object | ||
from autohotpy.static_typing.classes.array import Array as Array | ||
from autohotpy.static_typing.classes.buffer import Buffer as Buffer | ||
from autohotpy.static_typing.classes.class_ import Class as Class | ||
|
||
# from autohotpy.static_typing.classes.error import # TODO: error typing | ||
from autohotpy.static_typing.classes.file import File as File | ||
from autohotpy.static_typing.classes.func import ( | ||
Func as Func, | ||
BoundFunc as BoundFunc, | ||
Closure as Closure, | ||
Enumerator as Enumerator, | ||
) | ||
|
||
# from autohotpy.static_typing.classes.gui # TODO: gui typing | ||
from autohotpy.static_typing.classes.inputhook import InputHook as InputHook | ||
from autohotpy.static_typing.classes.map import Map as Map | ||
from autohotpy.static_typing.classes.menu import Menu as Menu, MenuBar as MenuBar | ||
from autohotpy.static_typing.classes.regex_match_info import ( | ||
RegExMatchInfo as RegExMatchInfo, | ||
) | ||
|
||
# ----------- | ||
# COM objects | ||
# ----------- | ||
from autohotpy.static_typing.classes.com_obj import ( | ||
ComValue as ComValue, | ||
ComObject as ComObject, | ||
ComObjArray as ComObjArray, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.