Skip to content

Commit

Permalink
Merge pull request #84 from ff137/fix/typos
Browse files Browse the repository at this point in the history
🎨 fix typos
  • Loading branch information
dbluhm authored Mar 26, 2024
2 parents 7a8a2b7 + efc6516 commit 930b2d9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 15 deletions.
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

0 comments on commit 930b2d9

Please sign in to comment.