pyglove 0.4.5.dev202411080809__py3-none-any.whl → 0.4.5.dev202411090808__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of pyglove might be problematic. Click here for more details.

@@ -138,7 +138,7 @@ class Space(DNASpec):
138
138
  """
139
139
  return not self.elements
140
140
 
141
- def validate(self, dna: DNA) -> None:
141
+ def validate(self, dna: DNA) -> None: # pytype: disable=signature-mismatch
142
142
  """Validate whether a DNA value conforms to this spec."""
143
143
  if not self.elements and (dna.value is not None or dna.children):
144
144
  raise ValueError(
@@ -192,7 +192,7 @@ class StdFileSystem(FileSystem):
192
192
  def rm(self, path: Union[str, os.PathLike[str]]) -> None:
193
193
  os.remove(path)
194
194
 
195
- def rmdir(self, path: Union[str, os.PathLike[str]]) -> None:
195
+ def rmdir(self, path: Union[str, os.PathLike[str]]) -> None: # pytype: disable=signature-mismatch
196
196
  os.rmdir(path)
197
197
 
198
198
  def rmdirs(self, path: Union[str, os.PathLike[str]]) -> None:
@@ -336,7 +336,7 @@ class MemoryFileSystem(FileSystem):
336
336
  raise IsADirectoryError(path)
337
337
  del parent_dir[name]
338
338
 
339
- def rmdir(self, path: Union[str, os.PathLike[str]]) -> None:
339
+ def rmdir(self, path: Union[str, os.PathLike[str]]) -> None: # pytype: disable=signature-mismatch
340
340
  parent_dir, name = self._parent_and_name(path)
341
341
  entry = parent_dir.get(name)
342
342
  if entry is None:
@@ -485,4 +485,4 @@ def rmdir(path: Union[str, os.PathLike[str]]) -> bool:
485
485
 
486
486
  def rmdirs(path: Union[str, os.PathLike[str]]) -> bool:
487
487
  """Removes a directory chain until a parent directory is not empty."""
488
- return _fs.get(path).rmdirs(path)
488
+ return _fs.get(path).rmdirs(path) # pytype: disable=bad-return-type
@@ -166,7 +166,7 @@ class ForwardRef(object_utils.Formattable):
166
166
  elif isinstance(other, ForwardRef):
167
167
  return self.module is other.module and self.name == other.name
168
168
  elif inspect.isclass(other):
169
- return self.resolved and self.cls is other
169
+ return self.resolved and self.cls is other # pytype: disable=bad-return-type
170
170
 
171
171
  def __ne__(self, other: Any) -> bool:
172
172
  """Operator!=."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyglove
3
- Version: 0.4.5.dev202411080809
3
+ Version: 0.4.5.dev202411090808
4
4
  Summary: PyGlove: A library for manipulating Python objects.
5
5
  Home-page: https://github.com/google/pyglove
6
6
  Author: PyGlove Authors
@@ -20,7 +20,7 @@ pyglove/core/geno/numerical.py,sha256=t2p1MNIJZbJP9IP4EDWrL06nA5UhICZJVxiF0Eo87B
20
20
  pyglove/core/geno/numerical_test.py,sha256=zkJocfknUZsXL9LwkY4zdVVqO7FbEeCZgohRzlLxET0,5796
21
21
  pyglove/core/geno/random.py,sha256=xs03iphDBO9f2FJJkbsRj6piky12g17v-i1drlWODu4,2619
22
22
  pyglove/core/geno/random_test.py,sha256=0Ctnm86w3nDcd7QL_XRdqJKrcTl46NpgRQ7TSzPY8ac,4941
23
- pyglove/core/geno/space.py,sha256=KrI55pANLD4u79XYX5XbLMJ6AgJY2lcJMWN6FroKCd4,9296
23
+ pyglove/core/geno/space.py,sha256=eiEbUr1UpdFC8YcmrEMArVx2604tGowI8dznWdp1rCk,9334
24
24
  pyglove/core/geno/space_test.py,sha256=zpCUbe98Qy0rUM1TZIOG6sKQM_2-cglz9UPVIYcPQuk,16554
25
25
  pyglove/core/geno/sweeping.py,sha256=VcvEm-IQ5DVUhDUBBXF2w-hcjLc5FJ8_OjItO0TbHuw,1322
26
26
  pyglove/core/geno/sweeping_test.py,sha256=Ex3LlH-RyM1aPSbhrtEmkQAScUkL1GWyZGUKxrEAeE8,2709
@@ -43,7 +43,7 @@ pyglove/core/hyper/numerical_test.py,sha256=_xZe0qe3wJdrQL4F8pgt0zf04zpbc_9c_5va
43
43
  pyglove/core/hyper/object_template.py,sha256=x6aBe-6ueo3CsFJ2yhbXbcdJKfId6wm_KsgkHHbpSoY,22325
44
44
  pyglove/core/hyper/object_template_test.py,sha256=TEFX7LIqUvdCdJILnK_gP5xIgNJKzRnioUF0CGVBzcY,9105
45
45
  pyglove/core/io/__init__.py,sha256=4ZT1a595DqQuLTNYc2JP_eCp_KesXvHmKRkr777bzpg,785
46
- pyglove/core/io/file_system.py,sha256=ZfeQeZ1HF1WjV1REC9wCaut5Wkdu_FjxPzulUju7Z_E,13279
46
+ pyglove/core/io/file_system.py,sha256=ps5SVckgFsrZk4xCu37iXkeIrvydLzLs9NsF14VzEcM,13390
47
47
  pyglove/core/io/file_system_test.py,sha256=FX0ySuh_Xcg1RO68do7ikD4pvslKUzfSpwZ6P4wIP7c,8691
48
48
  pyglove/core/io/sequence.py,sha256=7QWMGXPtJzHyGPgqkT3yJ01FxKJ4mP4lF5HRDiIHNbQ,8165
49
49
  pyglove/core/io/sequence_test.py,sha256=6tmnS7frBuDR8ussT5jugeh23TDsPDrDnbfxHh81Gy4,3891
@@ -125,7 +125,7 @@ pyglove/core/typing/callable_ext.py,sha256=1OM770LhT46qjhriKEgyDHp6whAGG0inobPbF
125
125
  pyglove/core/typing/callable_ext_test.py,sha256=TnWKU4_ZjvpbHZFtFHgFvCMDiCos8VmLlODcM_7Xg8M,10156
126
126
  pyglove/core/typing/callable_signature.py,sha256=MAH7isqhxXp8QdMw8jqxqWbsKs2jMh7uJlFIBL0tTQk,27242
127
127
  pyglove/core/typing/callable_signature_test.py,sha256=BYdn0i7nd0ITkACnR1RNtnmpXiE0MfpBrlQ7-yWSxYE,25223
128
- pyglove/core/typing/class_schema.py,sha256=SHLg8tHEzm9Bat0KS-mY1A2UQgme5UJrUqMz3aW5eLs,53118
128
+ pyglove/core/typing/class_schema.py,sha256=XFGLidRQ_B_x6Va57ml89_zgkEj-4a4bHXSpHPMgZKE,53153
129
129
  pyglove/core/typing/class_schema_test.py,sha256=1DvJTss20jzjruTnB4CuW6ozO6Hcs6TIN-xsJzEQkCM,29244
130
130
  pyglove/core/typing/custom_typing.py,sha256=w5gdx7JbHmAJfrUKLvonW9rI2gpCwMJo2wdF4yqarLI,2218
131
131
  pyglove/core/typing/inspect.py,sha256=Tp2rYqRvMFvL0NzkJo4p04_hQSF__Eip8RduhEaSFfE,7046
@@ -196,8 +196,8 @@ pyglove/ext/scalars/randoms.py,sha256=LkMIIx7lOq_lvJvVS3BrgWGuWl7Pi91-lA-O8x_gZs
196
196
  pyglove/ext/scalars/randoms_test.py,sha256=nEhiqarg8l_5EOucp59CYrpO2uKxS1pe0hmBdZUzRNM,2000
197
197
  pyglove/ext/scalars/step_wise.py,sha256=IDw3tuTpv0KVh7AN44W43zqm1-E0HWPUlytWOQC9w3Y,3789
198
198
  pyglove/ext/scalars/step_wise_test.py,sha256=TL1vJ19xVx2t5HKuyIzGoogF7N3Rm8YhLE6JF7i0iy8,2540
199
- pyglove-0.4.5.dev202411080809.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
200
- pyglove-0.4.5.dev202411080809.dist-info/METADATA,sha256=LEjV4122PtyPfeZg153NiYU1D6lQJ1MZ1zc7B6Mr3s8,6666
201
- pyglove-0.4.5.dev202411080809.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
202
- pyglove-0.4.5.dev202411080809.dist-info/top_level.txt,sha256=wITzJSKcj8GZUkbq-MvUQnFadkiuAv_qv5qQMw0fIow,8
203
- pyglove-0.4.5.dev202411080809.dist-info/RECORD,,
199
+ pyglove-0.4.5.dev202411090808.dist-info/LICENSE,sha256=WNHhf_5RCaeuKWyq_K39vmp9F28LxKsB4SpomwSZ2L0,11357
200
+ pyglove-0.4.5.dev202411090808.dist-info/METADATA,sha256=nzts_1WVRdwIdnQaEk4kMTYMda1yIB-whcNwq_phxGQ,6666
201
+ pyglove-0.4.5.dev202411090808.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
202
+ pyglove-0.4.5.dev202411090808.dist-info/top_level.txt,sha256=wITzJSKcj8GZUkbq-MvUQnFadkiuAv_qv5qQMw0fIow,8
203
+ pyglove-0.4.5.dev202411090808.dist-info/RECORD,,