[bindings] Fix overload order
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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"""
|
||||
|
||||
|
||||
@@ -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"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user