Skip to content

Commit 65b2815

Browse files
Refactor types.py to type.py (#381)
* Resolve issue with naming conflict by changing module name. Co-authored-by: Keith Fung <[email protected]>
1 parent 86e7695 commit 65b2815

15 files changed

+14
-14
lines changed

src/electionguard/auxiliary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import Callable, Optional, NamedTuple
22

3-
from .types import GUARDIAN_ID
3+
from .type import GUARDIAN_ID
44

55
MESSAGE = str
66
AUXILIARY_PUBLIC_KEY = str

src/electionguard/ballot_box.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from .election import CiphertextElectionContext
1313
from .logs import log_warning
1414
from .manifest import InternalManifest
15-
from .types import BALLOT_ID
15+
from .type import BALLOT_ID
1616

1717

1818
@dataclass

src/electionguard/decrypt_with_shares.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
PlaintextTallySelection,
1616
)
1717
from .logs import log_warning
18-
from .types import CONTEST_ID, GUARDIAN_ID, SELECTION_ID
18+
from .type import CONTEST_ID, GUARDIAN_ID, SELECTION_ID
1919

2020
AVAILABLE_GUARDIAN_ID = GUARDIAN_ID
2121
MISSING_GUARDIAN_ID = GUARDIAN_ID

src/electionguard/decryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
from .scheduler import Scheduler
3838
from .tally import CiphertextTally
3939

40-
from .types import CONTEST_ID, GUARDIAN_ID, SELECTION_ID
40+
from .type import CONTEST_ID, GUARDIAN_ID, SELECTION_ID
4141

4242
GUARDIAN_PUBLIC_KEY = ElementModP
4343
ELECTION_PUBLIC_KEY = ElementModP

src/electionguard/decryption_mediator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
CiphertextTally,
1717
PlaintextTally,
1818
)
19-
from .types import BALLOT_ID, GUARDIAN_ID, MEDIATOR_ID
19+
from .type import BALLOT_ID, GUARDIAN_ID, MEDIATOR_ID
2020

2121

2222
class DecryptionMediator:

src/electionguard/decryption_share.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from .logs import log_warning
1111

12-
from .types import CONTEST_ID, GUARDIAN_ID, SELECTION_ID
12+
from .type import CONTEST_ID, GUARDIAN_ID, SELECTION_ID
1313

1414
ELECTION_PUBLIC_KEY = ElementModP
1515

src/electionguard/guardian.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
from .serializable import Serializable
4444
from .schnorr import SchnorrProof
4545
from .tally import CiphertextTally
46-
from .types import BALLOT_ID, GUARDIAN_ID
46+
from .type import BALLOT_ID, GUARDIAN_ID
4747

4848

4949
@dataclass

src/electionguard/key_ceremony.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from .hash import hash_elems
2323
from .rsa import rsa_keypair, rsa_decrypt, rsa_encrypt
2424
from .schnorr import SchnorrProof
25-
from .types import GUARDIAN_ID
25+
from .type import GUARDIAN_ID
2626
from .utils import get_optional
2727

2828
ELECTION_PUBLIC_KEY = ElementModP

src/electionguard/key_ceremony_mediator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
combine_election_public_keys,
1212
verify_election_partial_key_challenge,
1313
)
14-
from .types import GUARDIAN_ID, MEDIATOR_ID
14+
from .type import GUARDIAN_ID, MEDIATOR_ID
1515

1616

1717
class GuardianPair(NamedTuple):

src/electionguard/tally.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from .logs import log_warning
2020
from .manifest import InternalManifest
2121
from .scheduler import Scheduler
22-
from .types import BALLOT_ID, CONTEST_ID, SELECTION_ID
22+
from .type import BALLOT_ID, CONTEST_ID, SELECTION_ID
2323

2424

2525
@dataclass

0 commit comments

Comments
 (0)