Skip to content

Commit befde03

Browse files
committed
update some type stubs
1 parent d567b30 commit befde03

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

python/anchorpy_idl/__init__.pyi

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class IdlTypeSimple:
1919
I256: "IdlTypeSimple"
2020
Bytes: "IdlTypeSimple"
2121
String: "IdlTypeSimple"
22-
PublicKey: "IdlTypeSimple"
22+
Pubkey: "IdlTypeSimple"
2323
def __int__(self) -> int: ...
2424
def __str__(self) -> str: ...
2525
def __repr__(self) -> str: ...
@@ -167,33 +167,33 @@ class IdlField:
167167
@staticmethod
168168
def from_json(raw: str) -> "IdlField": ...
169169

170-
class IdlTypeDefinitionTyStruct:
170+
class IdlTypeDefStruct:
171171
def __init__(self, fields: Sequence[IdlField]) -> None: ...
172172
@property
173173
def fields(self) -> List[IdlField]: ...
174174
def __bytes__(self) -> bytes: ...
175175
def __str__(self) -> str: ...
176176
def __repr__(self) -> str: ...
177-
def __richcmp__(self, other: "IdlTypeDefinitionTyStruct", op: int) -> bool: ...
177+
def __richcmp__(self, other: "IdlTypeDefStruct", op: int) -> bool: ...
178178
@staticmethod
179-
def from_bytes(raw_bytes: bytes) -> "IdlTypeDefinitionTyStruct": ...
179+
def from_bytes(raw_bytes: bytes) -> "IdlTypeDefStruct": ...
180180
def to_json(self) -> str: ...
181181
@staticmethod
182-
def from_json(raw: str) -> "IdlTypeDefinitionTyStruct": ...
182+
def from_json(raw: str) -> "IdlTypeDefStruct": ...
183183

184-
class IdlTypeDefinitionTyAlias:
184+
class IdlTypeDefAlias:
185185
def __init__(self, value: IdlType) -> None: ...
186186
@property
187187
def value(self) -> IdlType: ...
188188
def __bytes__(self) -> bytes: ...
189189
def __str__(self) -> str: ...
190190
def __repr__(self) -> str: ...
191-
def __richcmp__(self, other: "IdlTypeDefinitionTyAlias", op: int) -> bool: ...
191+
def __richcmp__(self, other: "IdlTypeDefAlias", op: int) -> bool: ...
192192
@staticmethod
193-
def from_bytes(raw_bytes: bytes) -> "IdlTypeDefinitionTyAlias": ...
193+
def from_bytes(raw_bytes: bytes) -> "IdlTypeDefAlias": ...
194194
def to_json(self) -> str: ...
195195
@staticmethod
196-
def from_json(raw: str) -> "IdlTypeDefinitionTyAlias": ...
196+
def from_json(raw: str) -> "IdlTypeDefAlias": ...
197197

198198
class EnumFieldsNamed:
199199
def __init__(self, fields: Sequence[IdlField]) -> None: ...
@@ -239,22 +239,22 @@ class IdlEnumVariant:
239239
@staticmethod
240240
def from_json(raw: str) -> "IdlEnumVariant": ...
241241

242-
class IdlTypeDefinitionTyEnum:
242+
class IdlTypeDefEnum:
243243
def __init__(self, variants: Sequence[IdlEnumVariant]) -> None: ...
244244
@property
245245
def variants(self) -> List[IdlEnumVariant]: ...
246246
def __bytes__(self) -> bytes: ...
247247
def __str__(self) -> str: ...
248248
def __repr__(self) -> str: ...
249-
def __richcmp__(self, other: "IdlTypeDefinitionTyEnum", op: int) -> bool: ...
249+
def __richcmp__(self, other: "IdlTypeDefEnum", op: int) -> bool: ...
250250
@staticmethod
251-
def from_bytes(raw_bytes: bytes) -> "IdlTypeDefinitionTyEnum": ...
251+
def from_bytes(raw_bytes: bytes) -> "IdlTypeDefEnum": ...
252252
def to_json(self) -> str: ...
253253
@staticmethod
254-
def from_json(raw: str) -> "IdlTypeDefinitionTyEnum": ...
254+
def from_json(raw: str) -> "IdlTypeDefEnum": ...
255255

256256
IdlTypeDefinitionTy = Union[
257-
IdlTypeDefinitionTyStruct, IdlTypeDefinitionTyEnum, IdlTypeDefinitionTyAlias
257+
IdlTypeDefStruct, IdlTypeDefEnum, IdlTypeDefAlias
258258
]
259259

260260
class IdlTypeDefinition:

0 commit comments

Comments
 (0)