Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pybind11_stubgen/parser/mixins/fix.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def handle_field(self, path: QualifiedName, field: Any) -> Field | None:
return None
if field is None and path[-1] == "__hash__":
result.attribute.annotation = self.parse_annotation_str(
"typing.ClassVar[None]"
"typing.ClassVar[typing.Any]"
)
return result

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapStringComplex:
def values(self) -> typing.ValuesView: ...

class VectorPairStringDouble:
__hash__: typing.ClassVar[None] = None
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapStringComplex:
def values(self) -> typing.ValuesView: ...

class VectorPairStringDouble:
__hash__: typing.ClassVar[None] = None
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapStringComplex:
def values(self) -> typing.ValuesView[complex]: ...

class VectorPairStringDouble:
__hash__: typing.ClassVar[None] = None
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapStringComplex:
def values(self) -> typing.ValuesView[MapStringComplex]: ...

class VectorPairStringDouble:
__hash__: typing.ClassVar[None] = None
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapStringComplex:
def values(self) -> typing.ValuesView: ...

class VectorPairStringDouble:
__hash__: typing.ClassVar[None] = None
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MapStringComplex:
def values(self) -> typing.ValuesView: ...

class VectorPairStringDouble:
__hash__: typing.ClassVar[None] = None
__hash__: typing.ClassVar[typing.Any] = None
def __bool__(self) -> bool:
"""
Check whether the list is nonempty
Expand Down