Updated README.md
This commit is contained in:
parent
f3180eb124
commit
56c3ecd4c2
13
README.md
13
README.md
|
@ -1,9 +1,10 @@
|
||||||
# PyConstants
|
# PyConstants
|
||||||
A library to make constants in python
|
Adds constants in python
|
||||||
|
|
||||||
# Goals
|
# Usage
|
||||||
- Make it working
|
```
|
||||||
- Detect type hinted constants (typing.Final)
|
from pyconstants import const
|
||||||
- Detect constants by the name (CONSTANT_VAR)
|
|
||||||
- Add a way to make any varible constant (const .foo = "bar")
|
|
||||||
|
|
||||||
|
const .a = 5
|
||||||
|
a = 7 # Raises SyntaxError
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in New Issue