-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
563fb26
commit 019a4ab
Showing
4 changed files
with
34 additions
and
1 deletion.
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
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,20 @@ | ||
from typing import List, Union | ||
|
||
from unimport.statement import Import, ImportFrom, Name | ||
|
||
__all__ = ["NAMES", "IMPORTS", "UNUSED_IMPORTS"] | ||
|
||
|
||
NAMES: List[Name] = [ | ||
Name(lineno=4, name="t.TYPE_CHECKING", is_all=False), | ||
Name(lineno=8, name="QtCore.QThread", is_all=False), | ||
] | ||
IMPORTS: List[Union[Import, ImportFrom]] = [ | ||
ImportFrom(lineno=1, column=1, name="QtCore", package="qtpy", star=False, suggestions=[]), | ||
Import(lineno=2, column=1, name="t", package="typing"), | ||
ImportFrom(lineno=5, column=1, name="QtCore", package="PySide6", star=False, suggestions=[]), | ||
] | ||
UNUSED_IMPORTS: List[Union[Import, ImportFrom]] = [ | ||
Import(lineno=2, column=1, name="t", package="typing"), | ||
ImportFrom(lineno=5, column=1, name="QtCore", package="PySide6", star=False, suggestions=[]), | ||
] |
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,4 @@ | ||
from qtpy import QtCore | ||
|
||
class MyThread(QtCore.QThread): | ||
pass |
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,9 @@ | ||
from qtpy import QtCore | ||
import typing as t | ||
|
||
if t.TYPE_CHECKING: | ||
from PySide6 import QtCore | ||
|
||
|
||
class MyThread(QtCore.QThread): | ||
pass |