1111
1212from .base import Node , AddressMap , RegFile , BaseArray , get_array_typecode
1313from .memory import Memory
14- from .callbacks import CallbackSet , NormalCallbackSet , AysncCallbackSet
14+ from .callbacks import CallbackSet , NormalCallbackSet , AsyncCallbackSet
1515
1616if TYPE_CHECKING :
1717 from .fields import FieldReadOnly , FieldWriteOnly , FieldReadWrite
@@ -404,15 +404,15 @@ class for an async read only register
404404
405405 # pylint: disable=too-many-arguments, duplicate-code
406406 def __init__ (self ,
407- callbacks : AysncCallbackSet ,
407+ callbacks : AsyncCallbackSet ,
408408 address : int ,
409409 width : int ,
410410 accesswidth : int ,
411411 logger_handle : str ,
412412 inst_name : str ,
413413 parent : Union [AddressMap , RegFile , Memory ]):
414414
415- if not isinstance (callbacks , AysncCallbackSet ):
415+ if not isinstance (callbacks , AsyncCallbackSet ):
416416 raise TypeError (f'callback set type is wrong, got { type (callbacks )} ' )
417417
418418 super ().__init__ (callbacks = callbacks ,
@@ -425,9 +425,9 @@ def __init__(self,
425425 self .__register_state : int = 0
426426
427427 @property
428- def _callbacks (self ) -> AysncCallbackSet :
428+ def _callbacks (self ) -> AsyncCallbackSet :
429429 # This cast is OK because the type was checked in the __init__
430- return cast (AysncCallbackSet , super ()._callbacks )
430+ return cast (AsyncCallbackSet , super ()._callbacks )
431431
432432 # pylint: enable=too-many-arguments, duplicate-code
433433
@@ -502,15 +502,15 @@ class for an asynchronous write only register
502502
503503 # pylint: disable=too-many-arguments, duplicate-code
504504 def __init__ (self ,
505- callbacks : AysncCallbackSet ,
505+ callbacks : AsyncCallbackSet ,
506506 address : int ,
507507 width : int ,
508508 accesswidth : int ,
509509 logger_handle : str ,
510510 inst_name : str ,
511511 parent : Union [AddressMap , RegFile , Memory ]):
512512
513- if not isinstance (callbacks , AysncCallbackSet ):
513+ if not isinstance (callbacks , AsyncCallbackSet ):
514514 raise TypeError (f'callback set type is wrong, got { type (callbacks )} ' )
515515
516516 super ().__init__ (callbacks = callbacks ,
@@ -520,9 +520,9 @@ def __init__(self,
520520 parent = parent , width = width , accesswidth = accesswidth )
521521
522522 @property
523- def _callbacks (self ) -> AysncCallbackSet :
523+ def _callbacks (self ) -> AsyncCallbackSet :
524524 # This cast is OK because the type was checked in the __init__
525- return cast (AysncCallbackSet , super ()._callbacks )
525+ return cast (AsyncCallbackSet , super ()._callbacks )
526526
527527 # pylint: enable=too-many-arguments, duplicate-code
528528
@@ -596,7 +596,7 @@ class for an async read and write only register
596596
597597 # pylint: disable=too-many-arguments, duplicate-code
598598 def __init__ (self ,
599- callbacks : AysncCallbackSet ,
599+ callbacks : AsyncCallbackSet ,
600600 address : int ,
601601 width : int ,
602602 accesswidth : int ,
0 commit comments