code: def test_strict_init_in_abstract():
      class AbstractA(eqx.Module):
          a: int
          b: int
  
          def __init__(self, x):
              self.a = x
              self.b = x
  
          @abc.abstractmethod
          def foo(self):
              pass
  
      class ConcreteB(AbstractA):
          def foo(self):
              pass
  
      # No way to teach pyright about Equinox's different behaviour for `__init__` than
      # is provided by dataclasses.
      instance = ConcreteB(x=1)  # pyright: ignore
      assert instance.a == 1
      assert instance.b == 1
  
imports: import abc
  import dataclasses
  import functools
  import inspect
  from collections.abc import Callable
  from dataclasses import InitVar
  from typing import Any, Optional
  import equinox
  import equinox.internal
  import jax
  import jax.numpy
  import jax.tree_util
  import pytest
  from .helpers import tree_allclose
label_desc: Use image node_id 31 for calling a global function with example usage: test_strict_init_in_abstract() without return types