File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1277,6 +1277,7 @@ def new_user(user_class: Type[U]) -> U:
1277
1277
1278
1278
1279
1279
class SupportsInt (_Protocol ):
1280
+ """An ABC with one abstract method __int__."""
1280
1281
__slots__ = ()
1281
1282
1282
1283
@abstractmethod
@@ -1285,6 +1286,7 @@ def __int__(self) -> int:
1285
1286
1286
1287
1287
1288
class SupportsFloat (_Protocol ):
1289
+ """An ABC with one abstract method __float__."""
1288
1290
__slots__ = ()
1289
1291
1290
1292
@abstractmethod
@@ -1293,6 +1295,7 @@ def __float__(self) -> float:
1293
1295
1294
1296
1295
1297
class SupportsComplex (_Protocol ):
1298
+ """An ABC with one abstract method __complex__."""
1296
1299
__slots__ = ()
1297
1300
1298
1301
@abstractmethod
@@ -1301,6 +1304,7 @@ def __complex__(self) -> complex:
1301
1304
1302
1305
1303
1306
class SupportsBytes (_Protocol ):
1307
+ """An ABC with one abstract method __bytes__."""
1304
1308
__slots__ = ()
1305
1309
1306
1310
@abstractmethod
@@ -1309,6 +1313,7 @@ def __bytes__(self) -> bytes:
1309
1313
1310
1314
1311
1315
class SupportsAbs (_Protocol [T_co ]):
1316
+ """An ABC with one abstract method __abs__ that is covariant in its return type."""
1312
1317
__slots__ = ()
1313
1318
1314
1319
@abstractmethod
@@ -1317,6 +1322,7 @@ def __abs__(self) -> T_co:
1317
1322
1318
1323
1319
1324
class SupportsRound (_Protocol [T_co ]):
1325
+ """An ABC with one abstract method __round__ that is covariant in its return type."""
1320
1326
__slots__ = ()
1321
1327
1322
1328
@abstractmethod
You can’t perform that action at this time.
0 commit comments