Skip to content

🐞 Types cased like Constants #482

@keithrfung

Description

@keithrfung

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

There are some types such as GUARDIAN_ID that are cased incorrectly. These variables function as types and not constants and therefore should be using "CapWords" since these are actually functioning as Type's.

https://www.python.org/dev/peps/pep-0008/

Expected Behavior

Global Constants should be capitalized with underscores
THRESHOLD = 3

Classes and Types should be like this:
GuardianId = str

Steps To Reproduce

No response

Environment

- OS: Any

Anything else?

It's probably helpful just to look at the types from this level for speed.

https://github.com/microsoft/electionguard-python/blob/main/src/electionguard/__init__.py
https://github.com/microsoft/electionguard-python/blob/main/src/electionguard_tools/__init__.py
https://github.com/microsoft/electionguard-python/blob/main/src/electionguard_verify/__init__.py

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershacktoberfestIssues for the Hacktoberfesthelp wantedExtra attention is needed

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions