Skip to content

Commit 5b809bb

Browse files
committed
Add stubs
1 parent 07a8e9d commit 5b809bb

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

flax/linen/linear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class _Conv(Module):
293293
bias_init: Callable[[PRNGKey, Shape, Dtype], Array] = zeros
294294

295295
@property
296-
def shared_weights(self) -> bool:
296+
def shared_weights(self) -> bool: # type: ignore
297297
"""Defines whether weights are shared or not between different pixels.
298298
299299
Returns:
@@ -302,7 +302,7 @@ def shared_weights(self) -> bool:
302302
"locally connected layer", "unshared convolution", or "local convolution".
303303
304304
"""
305-
... # type: ignore
305+
...
306306

307307
@compact
308308
def __call__(self, inputs: Array) -> Array:

mypy.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,5 @@ ignore_missing_imports = True
2929
ignore_missing_imports = True
3030
[mypy-jaxlib.mlir.*]
3131
ignore_missing_imports = True
32+
[mypy-yaml]
33+
ignore_missing_imports = True

0 commit comments

Comments
 (0)