Skip to content

Commit

Permalink
MessageMeta -> GeneratedProtocolMessageType
Browse files Browse the repository at this point in the history
  • Loading branch information
hoel-bagard committed Jan 27, 2024
1 parent 9d381e4 commit 56e6bcf
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions stubs/tensorflow/tensorflow/train/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ from typing_extensions import Self

import numpy as np
import tensorflow as tf
from google._upb._message import MessageMeta
from google.protobuf.pyext.cpp_message import GeneratedProtocolMessageType

Check failure on line 8 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Import "google.protobuf.pyext.cpp_message" could not be resolved (reportMissingImports)
from tensorflow.python.trackable.base import Trackable

class CheckpointOptions:
Expand All @@ -28,36 +28,36 @@ class CheckpointOptions:
def __copy__(self) -> Self: ...

@final
class Example(MessageMeta):
class Example(GeneratedProtocolMessageType):

Check failure on line 31 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
features: Features

@final
class Features(MessageMeta):
class Features(GeneratedProtocolMessageType):

Check failure on line 35 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
feature: dict[str, Feature]

@final
class Feature(MessageMeta):
class Feature(GeneratedProtocolMessageType):

Check failure on line 39 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
float_list: FloatList
int64_list: Int64List
bytes_list: BytesList

@final
class FloatList(MessageMeta):
class FloatList(GeneratedProtocolMessageType):

Check failure on line 45 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
value: list[float]

@final
class Int64List(MessageMeta):
class Int64List(GeneratedProtocolMessageType):

Check failure on line 49 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
value: list[int]

@final
class BytesList(MessageMeta):
class BytesList(GeneratedProtocolMessageType):

Check failure on line 53 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)
value: list[bytes]

@final
class ServerDef(MessageMeta): ...
class ServerDef(GeneratedProtocolMessageType): ...

Check failure on line 57 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)

@final
class ClusterDef(MessageMeta): ...
class ClusterDef(GeneratedProtocolMessageType): ...

Check failure on line 60 in stubs/tensorflow/tensorflow/train/__init__.pyi

View workflow job for this annotation

GitHub Actions / Test typeshed with pyright (Linux, 3.11)

Base class type is unknown, obscuring type of derived class (reportUntypedBaseClass)

_T = TypeVar("_T", bound=list[str] | tuple[str] | dict[int, str])

Expand Down

0 comments on commit 56e6bcf

Please sign in to comment.