Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎨 fix typos #84

Merged
merged 2 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ Python library for validating, constructing, and representing DIDs and DID Docum
Using a virtual environment is generally recommended:

```sh
$ python -m venv env
$ source env/bin/activate
python -m venv env
source env/bin/activate
```

Install with pip:

```sh
$ pip install pydid
pip install pydid
```

## Development
Expand All @@ -28,13 +28,12 @@ To begin making code changes, clone this repo and do the following to install
dependencies:

```sh
$ python -m venv env
$ source env/bin/activate
$ pip install poetry
$ poetry install
python -m venv env
source env/bin/activate
pip install poetry
poetry install
```


## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md).
2 changes: 1 addition & 1 deletion pydid/did.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""W3C DID Representation.

DID Parsing rules derived from W3C Decentrialized Identifiers v1.0 Working Draft 18
DID Parsing rules derived from W3C Decentralized Identifiers v1.0 Working Draft 18
January 2021:

https://w3c.github.io/did-core/
Expand Down
2 changes: 1 addition & 1 deletion pydid/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

@contextmanager
def wrap_validation_error(error_to_raise: Type[Exception], message: str = None):
"""Wrap validation erros with more friendly errors."""
"""Wrap validation errors with more friendly errors."""
try:
yield
except ValidationError as error:
Expand Down
8 changes: 4 additions & 4 deletions pydid/verification_method.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ class Bls1238G2Key2020(VerificationMethod):
public_key_base58: str


class GpgVerifcationKey2020(VerificationMethod):
"""GpgVerifcationKey2020 VerificationMethod."""
class GpgVerificationKey2020(VerificationMethod):
"""GpgVerificationKey2020 VerificationMethod."""

type: Literal["GpgVerifcationKey2020"]
type: Literal["GpgVerificationKey2020"]
public_key_gpg: str


Expand Down Expand Up @@ -281,7 +281,7 @@ class UnknownVerificationMethod(VerificationMethod):
EcdsaSecp256k1VerificationKey2019,
Bls1238G1Key2020,
Bls1238G2Key2020,
GpgVerifcationKey2020,
GpgVerificationKey2020,
RsaVerificationKey2018,
X25519KeyAgreementKey2019,
X25519KeyAgreementKey2020,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class Test(Resource):
def test_dereference_as_compatible(mock_indexed_resource):
class One(Resource):
common: str
optiona: Optional[str] = None
optional: Optional[str] = None

class Two(Resource):
common: str
Expand Down
Loading