Skip to content

Commit

Permalink
stubs: Update type: ignore comments for wx imports
Browse files Browse the repository at this point in the history
  • Loading branch information
WMOkiishi committed Jan 15, 2024
1 parent 00b85bd commit 2d93814
Show file tree
Hide file tree
Showing 19 changed files with 44 additions and 44 deletions.
6 changes: 3 additions & 3 deletions src/direct-stubs/leveleditor/AnimControlUI.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Unused
from wx.lib.embeddedimage import PyEmbeddedImage # type: ignore[import-untyped]
from wx.lib.embeddedimage import PyEmbeddedImage # type: ignore

from .LevelEditor import LevelEditor

Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/CurveAnimUI.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Obj, Unused
from direct.interval import MetaInterval
from panda3d.core import NodePath
Expand Down
6 changes: 3 additions & 3 deletions src/direct-stubs/leveleditor/GraphEditorUI.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from collections.abc import Sequence
from typing import Any, SupportsFloat

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Obj, Unused
from panda3d._typing import Vec2Like
from wx.lib.embeddedimage import PyEmbeddedImage # type: ignore[import-untyped]
from wx.lib.embeddedimage import PyEmbeddedImage # type: ignore

from .LevelEditor import LevelEditor

Expand Down
6 changes: 3 additions & 3 deletions src/direct-stubs/leveleditor/HotKeyUI.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Any

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Unused
from wx.lib.scrolledpanel import ScrolledPanel # type: ignore[import-untyped]
from wx.lib.scrolledpanel import ScrolledPanel # type: ignore

class EditHotKeyDialog(wx.Dialog, metaclass=sip.wrapper):
currKey: str
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/LayerEditorUI.pyi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore

from .LevelEditor import LevelEditor

Expand Down
2 changes: 1 addition & 1 deletion src/direct-stubs/leveleditor/LevelEditorUI.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import wx.siplib as sip # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore

from .LevelEditorUIBase import LevelEditorUIBase

Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/LevelEditorUIBase.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Any, SupportsFloat
from typing_extensions import Final

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Unused
from direct.wxwidgets.ViewPort import Viewport
from direct.wxwidgets.WxPandaShell import WxPandaShell
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/MayaConverter.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ from collections.abc import Callable
from typing import Any
from typing_extensions import Final, Literal

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Obj, Unused

from .LevelEditor import LevelEditor
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/ObjectPaletteUI.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Unused

from .LevelEditor import LevelEditor
Expand Down
10 changes: 5 additions & 5 deletions src/direct-stubs/leveleditor/ObjectPropertyUI.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ from _typeshed import Incomplete
from collections.abc import Callable, Iterable
from typing import Any

import wx # type: ignore[import-untyped]
import wx.sipblib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.sipblib as sip # type: ignore
from direct._typing import Unused
from direct.wxwidgets.WxSlider import WxSlider
from wx.lib.agw.cubecolourdialog import CubeColourDialog # type: ignore[import-untyped]
from wx.lib.embeddedimage import PyEmbeddedImage # type: ignore[import-untyped]
from wx.lib.scrolledpanel import ScrolledPanel # type: ignore[import-untyped]
from wx.lib.agw.cubecolourdialog import CubeColourDialog # type: ignore
from wx.lib.embeddedimage import PyEmbeddedImage # type: ignore
from wx.lib.scrolledpanel import ScrolledPanel # type: ignore

from .LevelEditor import LevelEditor

Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/PaletteTreeCtrl.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections.abc import Mapping, MutableSet

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore

from .ObjectPaletteUI import ObjectPaletteUI
from .ProtoPaletteUI import ProtoPaletteUI
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/ProtoObjsUI.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ from abc import ABCMeta, abstractmethod
from collections.abc import Iterable
from typing import Any, TypeVar

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Unused

from .LevelEditor import LevelEditor
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/ProtoPaletteUI.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from _typeshed import Incomplete
from typing import Any, TypeVar

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore

from .LevelEditor import LevelEditor
from .PaletteTreeCtrl import PaletteTreeCtrl
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/leveleditor/SceneGraphUIBase.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from abc import ABCMeta, abstractmethod
from typing import Any

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct._typing import Obj, Unused
from panda3d.core import NodePath

Expand Down
2 changes: 1 addition & 1 deletion src/direct-stubs/wxwidgets/ViewPort.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ __all__ = ['Viewport', 'ViewportManager']
from typing import Any, ClassVar
from typing_extensions import Final, Literal

import wx.siplib as sip # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore
from direct.directtools.DirectGrid import DirectGrid
from direct.showbase.DirectObject import DirectObject
from panda3d.core import ButtonThrower, Camera, CollisionNode, Lens, LPoint3f, NodePath
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/wxwidgets/WxAppShell.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import ClassVar

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore

class WxAppShell(wx.Frame, metaclass=sip.wrapper):
appversion: ClassVar[str]
Expand Down
6 changes: 3 additions & 3 deletions src/direct-stubs/wxwidgets/WxPandaShell.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from typing import ClassVar, overload
from typing_extensions import Final, Literal

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore
from direct.showbase.ShowBase import ShowBase
from direct.task.Task import Task
from wx.lib.agw.fourwaysplitter import FourWaySplitter # type: ignore[import-untyped]
from wx.lib.agw.fourwaysplitter import FourWaySplitter # type: ignore

from .ViewPort import Viewport
from .WxAppShell import WxAppShell
Expand Down
6 changes: 3 additions & 3 deletions src/direct-stubs/wxwidgets/WxPandaWindow.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import sys
from typing import ClassVar

import wx # type: ignore[import-untyped]
import wx.glcanvas as wxgl # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.glcanvas as wxgl # type: ignore
import wx.siplib as sip # type: ignore
from panda3d.core import ButtonHandle, ConfigVariableBool, GraphicsWindow, InputDevice

class EmbeddedPandaWindow(wx.Window, metaclass=sip.wrapper):
Expand Down
4 changes: 2 additions & 2 deletions src/direct-stubs/wxwidgets/WxSlider.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from collections.abc import Callable
from typing import Any

import wx # type: ignore[import-untyped]
import wx.siplib as sip # type: ignore[import-untyped]
import wx # type: ignore
import wx.siplib as sip # type: ignore

class WxSlider(wx.Slider, metaclass=sip.wrapper):
maxValue: float
Expand Down

0 comments on commit 2d93814

Please sign in to comment.