[bindings] Fix overload order

This commit is contained in:
Frank Martinez
2025-10-07 12:04:08 -05:00
parent f6615763ad
commit d4d7cabdc5
9 changed files with 50 additions and 47 deletions

View File

@@ -3,7 +3,7 @@
from __future__ import annotations
from DocumentObject import DocumentObject
from Base import Placement
from Base.Placement import Placement
from typing import Any, Final, Optional
class GeoFeature(DocumentObject):

View File

@@ -24,8 +24,6 @@ class Material(PyObjectBase):
UserDocu: This is the Material class
"""
@overload
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def set(self, string: str, /) -> None:
"""
Set(string) -- Set the material.
@@ -35,6 +33,7 @@ class Material(PyObjectBase):
Satin, Metalized, Neon GNC, Chrome, Aluminium, Obsidian, Neon PHC, Jade, Ruby or Emerald.
"""
...
AmbientColor: Any = ...
"""Ambient color"""

View File

@@ -19,7 +19,9 @@ class StringHasher(BaseClass):
"""
@overload
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
def getID(self, txt: str, base64: bool = False, /) -> Any: ...
@overload
def getID(self, id: int, base64: bool = False, /) -> Any: ...
def getID(self, arg: Any, base64: bool = False, /) -> Any:
"""
getID(txt|id, base64=False) -> StringID
@@ -34,16 +36,13 @@ class StringHasher(BaseClass):
"""
...
@overload
def getID(self, txt: str, base64: bool = False, /) -> Any: ...
@overload
def getID(self, id: int, base64: bool = False, /) -> Any: ...
@constmethod
def isSame(self, other: "StringHasher", /) -> bool:
"""
Check if two hasher are the same
"""
...
Count: Final[int] = 0
"""Return count of used hashes"""