Skip to content

Commit

Permalink
chore: Update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
sizmailov committed Nov 25, 2023
1 parent 37f93a5 commit 9d2e90f
Show file tree
Hide file tree
Showing 35 changed files with 110 additions and 305 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from __future__ import annotations

import pybind11_stubgen.typing_ext

import demo._bindings.classes

__all__ = ["value"]
value: demo._bindings.classes.Foo = pybind11_stubgen.typing_ext.ValueExpr(
"<demo._bindings.classes.Foo object>"
)
value: demo._bindings.classes.Foo # value = <demo._bindings.classes.Foo object>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

import demo._bindings.classes

__all__ = ["Bar1"]

class Bar1:
foo: typing.ClassVar[
demo._bindings.classes.Foo
] = pybind11_stubgen.typing_ext.ValueExpr("<demo._bindings.classes.Foo object>")
] # value = <demo._bindings.classes.Foo object>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

__all__ = ["Base", "CppException", "Derived", "Foo", "Outer"]

class Base:
Expand Down Expand Up @@ -36,17 +34,11 @@ class Outer:
TWO
"""

ONE: typing.ClassVar[
Outer.Inner.NestedEnum
] = pybind11_stubgen.typing_ext.ValueExpr("<NestedEnum.ONE: 1>")
TWO: typing.ClassVar[
Outer.Inner.NestedEnum
] = pybind11_stubgen.typing_ext.ValueExpr("<NestedEnum.TWO: 2>")
ONE: typing.ClassVar[Outer.Inner.NestedEnum] # value = <NestedEnum.ONE: 1>
TWO: typing.ClassVar[Outer.Inner.NestedEnum] # value = <NestedEnum.TWO: 2>
__members__: typing.ClassVar[
dict[str, Outer.Inner.NestedEnum]
] = pybind11_stubgen.typing_ext.ValueExpr(
"{'ONE': <NestedEnum.ONE: 1>, 'TWO': <NestedEnum.TWO: 2>}"
)
] # value = {'ONE': <NestedEnum.ONE: 1>, 'TWO': <NestedEnum.TWO: 2>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ class ConsoleForegroundColor:

Magenta: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Magenta: 35>")
] # value = <ConsoleForegroundColor.Magenta: 35>
__members__: typing.ClassVar[
dict[str, ConsoleForegroundColor]
] = pybind11_stubgen.typing_ext.ValueExpr(
"{'Magenta': <ConsoleForegroundColor.Magenta: 35>}"
)
] # value = {'Magenta': <ConsoleForegroundColor.Magenta: 35>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
Expand All @@ -42,6 +40,4 @@ def accepts_ambiguous_enum(
),
) -> None: ...

Magenta: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Magenta: 35>"
)
Magenta: ConsoleForegroundColor # value = <ConsoleForegroundColor.Magenta: 35>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

__all__ = [
"Blue",
"ConsoleForegroundColor",
Expand Down Expand Up @@ -31,24 +29,22 @@ class ConsoleForegroundColor:

Blue: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Blue: 34>")
] # value = <ConsoleForegroundColor.Blue: 34>
Green: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Green: 32>")
] # value = <ConsoleForegroundColor.Green: 32>
Magenta: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Magenta: 35>")
] # value = <ConsoleForegroundColor.Magenta: 35>
None_: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.None_: -1>")
] # value = <ConsoleForegroundColor.None_: -1>
Yellow: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Yellow: 33>")
] # value = <ConsoleForegroundColor.Yellow: 33>
__members__: typing.ClassVar[
dict[str, ConsoleForegroundColor]
] = pybind11_stubgen.typing_ext.ValueExpr(
"{'Green': <ConsoleForegroundColor.Green: 32>, 'Yellow': <ConsoleForegroundColor.Yellow: 33>, 'Blue': <ConsoleForegroundColor.Blue: 34>, 'Magenta': <ConsoleForegroundColor.Magenta: 35>, 'None_': <ConsoleForegroundColor.None_: -1>}"
)
] # value = {'Green': <ConsoleForegroundColor.Green: 32>, 'Yellow': <ConsoleForegroundColor.Yellow: 33>, 'Blue': <ConsoleForegroundColor.Blue: 34>, 'Magenta': <ConsoleForegroundColor.Magenta: 35>, 'None_': <ConsoleForegroundColor.None_: -1>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
Expand All @@ -68,18 +64,8 @@ def accept_defaulted_enum(
color: ConsoleForegroundColor = ConsoleForegroundColor.None_,
) -> None: ...

Blue: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Blue: 34>"
)
Green: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Green: 32>"
)
Magenta: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Magenta: 35>"
)
None_: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.None_: -1>"
)
Yellow: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Yellow: 33>"
)
Blue: ConsoleForegroundColor # value = <ConsoleForegroundColor.Blue: 34>
Green: ConsoleForegroundColor # value = <ConsoleForegroundColor.Green: 32>
Magenta: ConsoleForegroundColor # value = <ConsoleForegroundColor.Magenta: 35>
None_: ConsoleForegroundColor # value = <ConsoleForegroundColor.None_: -1>
Yellow: ConsoleForegroundColor # value = <ConsoleForegroundColor.Yellow: 33>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

__all__ = ["issue_51_catastrophic_regex", "issue_73_utf8_doc_chars"]

def issue_51_catastrophic_regex(arg0: int, arg1: int) -> None:
Expand All @@ -23,4 +21,4 @@ def issue_73_utf8_doc_chars() -> None:
values provide more damping in response.
"""

_cleanup: typing.Any = pybind11_stubgen.typing_ext.ValueExpr("<capsule object>")
_cleanup: typing.Any # value = <capsule object>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import datetime

import numpy
import pybind11_stubgen.typing_ext
from numpy import random

__all__ = [
Expand All @@ -28,12 +27,8 @@ class Foo:

def add_day(arg0: datetime.datetime) -> datetime.datetime: ...

foolist: list = pybind11_stubgen.typing_ext.ValueExpr(
"[<demo._bindings.values.Foo object>, <demo._bindings.values.Foo object>]"
)
foovar: Foo = pybind11_stubgen.typing_ext.ValueExpr(
"<demo._bindings.values.Foo object>"
)
foolist: list # value = [<demo._bindings.values.Foo object>, <demo._bindings.values.Foo object>]
foovar: Foo # value = <demo._bindings.values.Foo object>
list_with_none: list = [None, 2, {}]
none = None
t_10ms: datetime.timedelta = datetime.timedelta(microseconds=10000)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from __future__ import annotations

import pybind11_stubgen.typing_ext

import demo._bindings.classes

__all__ = ["value"]
value: demo._bindings.classes.Foo = pybind11_stubgen.typing_ext.ValueExpr(
"<demo._bindings.classes.Foo object>"
)
value: demo._bindings.classes.Foo # value = <demo._bindings.classes.Foo object>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

import demo._bindings.classes

__all__ = ["Bar1"]

class Bar1:
foo: typing.ClassVar[
demo._bindings.classes.Foo
] = pybind11_stubgen.typing_ext.ValueExpr("<demo._bindings.classes.Foo object>")
] # value = <demo._bindings.classes.Foo object>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

__all__ = ["Base", "CppException", "Derived", "Foo", "Outer"]

class Base:
Expand Down Expand Up @@ -36,17 +34,11 @@ class Outer:
TWO
"""

ONE: typing.ClassVar[
Outer.Inner.NestedEnum
] = pybind11_stubgen.typing_ext.ValueExpr("<NestedEnum.ONE: 1>")
TWO: typing.ClassVar[
Outer.Inner.NestedEnum
] = pybind11_stubgen.typing_ext.ValueExpr("<NestedEnum.TWO: 2>")
ONE: typing.ClassVar[Outer.Inner.NestedEnum] # value = <NestedEnum.ONE: 1>
TWO: typing.ClassVar[Outer.Inner.NestedEnum] # value = <NestedEnum.TWO: 2>
__members__: typing.ClassVar[
dict[str, Outer.Inner.NestedEnum]
] = pybind11_stubgen.typing_ext.ValueExpr(
"{'ONE': <NestedEnum.ONE: 1>, 'TWO': <NestedEnum.TWO: 2>}"
)
] # value = {'ONE': <NestedEnum.ONE: 1>, 'TWO': <NestedEnum.TWO: 2>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ class ConsoleForegroundColor:

Magenta: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Magenta: 35>")
] # value = <ConsoleForegroundColor.Magenta: 35>
__members__: typing.ClassVar[
dict[str, ConsoleForegroundColor]
] = pybind11_stubgen.typing_ext.ValueExpr(
"{'Magenta': <ConsoleForegroundColor.Magenta: 35>}"
)
] # value = {'Magenta': <ConsoleForegroundColor.Magenta: 35>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
Expand All @@ -42,6 +40,4 @@ def accepts_ambiguous_enum(
),
) -> None: ...

Magenta: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Magenta: 35>"
)
Magenta: ConsoleForegroundColor # value = <ConsoleForegroundColor.Magenta: 35>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

__all__ = [
"Blue",
"ConsoleForegroundColor",
Expand Down Expand Up @@ -31,24 +29,22 @@ class ConsoleForegroundColor:

Blue: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Blue: 34>")
] # value = <ConsoleForegroundColor.Blue: 34>
Green: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Green: 32>")
] # value = <ConsoleForegroundColor.Green: 32>
Magenta: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Magenta: 35>")
] # value = <ConsoleForegroundColor.Magenta: 35>
None_: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.None_: -1>")
] # value = <ConsoleForegroundColor.None_: -1>
Yellow: typing.ClassVar[
ConsoleForegroundColor
] = pybind11_stubgen.typing_ext.ValueExpr("<ConsoleForegroundColor.Yellow: 33>")
] # value = <ConsoleForegroundColor.Yellow: 33>
__members__: typing.ClassVar[
dict[str, ConsoleForegroundColor]
] = pybind11_stubgen.typing_ext.ValueExpr(
"{'Green': <ConsoleForegroundColor.Green: 32>, 'Yellow': <ConsoleForegroundColor.Yellow: 33>, 'Blue': <ConsoleForegroundColor.Blue: 34>, 'Magenta': <ConsoleForegroundColor.Magenta: 35>, 'None_': <ConsoleForegroundColor.None_: -1>}"
)
] # value = {'Green': <ConsoleForegroundColor.Green: 32>, 'Yellow': <ConsoleForegroundColor.Yellow: 33>, 'Blue': <ConsoleForegroundColor.Blue: 34>, 'Magenta': <ConsoleForegroundColor.Magenta: 35>, 'None_': <ConsoleForegroundColor.None_: -1>}
def __eq__(self, other: typing.Any) -> bool: ...
def __getstate__(self) -> int: ...
def __hash__(self) -> int: ...
Expand All @@ -68,18 +64,8 @@ def accept_defaulted_enum(
color: ConsoleForegroundColor = ConsoleForegroundColor.None_,
) -> None: ...

Blue: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Blue: 34>"
)
Green: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Green: 32>"
)
Magenta: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Magenta: 35>"
)
None_: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.None_: -1>"
)
Yellow: ConsoleForegroundColor = pybind11_stubgen.typing_ext.ValueExpr(
"<ConsoleForegroundColor.Yellow: 33>"
)
Blue: ConsoleForegroundColor # value = <ConsoleForegroundColor.Blue: 34>
Green: ConsoleForegroundColor # value = <ConsoleForegroundColor.Green: 32>
Magenta: ConsoleForegroundColor # value = <ConsoleForegroundColor.Magenta: 35>
None_: ConsoleForegroundColor # value = <ConsoleForegroundColor.None_: -1>
Yellow: ConsoleForegroundColor # value = <ConsoleForegroundColor.Yellow: 33>
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

__all__ = ["issue_51_catastrophic_regex", "issue_73_utf8_doc_chars"]

def issue_51_catastrophic_regex(arg0: int, arg1: int) -> None:
Expand All @@ -23,4 +21,4 @@ def issue_73_utf8_doc_chars() -> None:
values provide more damping in response.
"""

_cleanup: typing.Any = pybind11_stubgen.typing_ext.ValueExpr("<capsule object>")
_cleanup: typing.Any # value = <capsule object>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ from __future__ import annotations
import datetime

import numpy
import pybind11_stubgen.typing_ext
from numpy import random

__all__ = [
Expand All @@ -28,12 +27,8 @@ class Foo:

def add_day(arg0: datetime.datetime) -> datetime.datetime: ...

foolist: list = pybind11_stubgen.typing_ext.ValueExpr(
"[<demo._bindings.values.Foo object>, <demo._bindings.values.Foo object>]"
)
foovar: Foo = pybind11_stubgen.typing_ext.ValueExpr(
"<demo._bindings.values.Foo object>"
)
foolist: list # value = [<demo._bindings.values.Foo object>, <demo._bindings.values.Foo object>]
foovar: Foo # value = <demo._bindings.values.Foo object>
list_with_none: list = [None, 2, {}]
none = None
t_10ms: datetime.timedelta = datetime.timedelta(microseconds=10000)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
from __future__ import annotations

import pybind11_stubgen.typing_ext

import demo._bindings.classes

__all__ = ["value"]
value: demo._bindings.classes.Foo = pybind11_stubgen.typing_ext.ValueExpr(
"<demo._bindings.classes.Foo object>"
)
value: demo._bindings.classes.Foo # value = <demo._bindings.classes.Foo object>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ from __future__ import annotations

import typing

import pybind11_stubgen.typing_ext

import demo._bindings.classes

__all__ = ["Bar1"]

class Bar1:
foo: typing.ClassVar[
demo._bindings.classes.Foo
] = pybind11_stubgen.typing_ext.ValueExpr("<demo._bindings.classes.Foo object>")
] # value = <demo._bindings.classes.Foo object>
Loading

0 comments on commit 9d2e90f

Please sign in to comment.