forked from mhostetter/galois
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move placeholder factory functions into
_factory.py
- Loading branch information
1 parent
eefce37
commit e9d6806
Showing
5 changed files
with
25 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
""" | ||
A module for for creating Array subclasses. These functions are provided to prevent circular dependencies. | ||
They will be monkey-patched into the _polys module. | ||
""" | ||
from typing import Type | ||
|
||
from ._array import Array | ||
|
||
|
||
def FIELD_FACTORY(*args, **kwargs) -> Type[Array]: # pylint: disable=unused-argument | ||
""" | ||
This will be monkey-patched to be `galois.GF()` in __init__.py. | ||
""" | ||
return Array | ||
|
||
|
||
DEFAULT_FIELD_ARRAY = Array | ||
""" | ||
This will be monkey-patched to be `galois.GF2` in __init__.py. | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters