Skip to content

Commit

Permalink
chore: started adding some partial typing of bpy modules
Browse files Browse the repository at this point in the history
  • Loading branch information
ntamas committed Apr 1, 2024
1 parent a757aee commit 6d8c37b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
11 changes: 11 additions & 0 deletions typings/bpy/__init__.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
from typing import Tuple

from .types import Context

class _App:
version: Tuple[int, int, int]
version_file: Tuple[int, int, int]
version_string: str

app: _App
context: Context
4 changes: 4 additions & 0 deletions typings/bpy/path.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from pathlib import Path
from typing import Union

def basename(path: Union[str, Path]) -> str: ...
7 changes: 7 additions & 0 deletions typings/bpy/types.pyi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from sbstudio.plugin.model import DroneShowAddonProperties

class Scene:
skybrush: DroneShowAddonProperties

class Context:
scene: Scene

0 comments on commit 6d8c37b

Please sign in to comment.