Skip to content

Commit f163d07

Browse files
📝 chore: fix random typos (#340)
1 parent 47aa78e commit f163d07

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

pydantic_extra_types/color.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""Color definitions are used as per the CSS3
22
[CSS Color Module Level 3](http://www.w3.org/TR/css3-color/#svg-color) specification.
33
4-
A few colors have multiple names referring to the sames colors, eg. `grey` and `gray` or `aqua` and `cyan`.
4+
A few colors have multiple names referring to the same colors, e.g. `grey` and `gray` or `aqua` and `cyan`.
55
6-
In these cases the _last_ color when sorted alphabetically takes preferences,
6+
In these cases the _last_ color when sorted alphabetically takes precedence.
77
eg. `Color((0, 255, 255)).as_named() == 'cyan'` because "cyan" comes after "aqua".
88
"""
99

pydantic_extra_types/s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
class S3Path(str):
1818
"""An object representing a valid S3 path.
1919
This type also allows you to access the `bucket` and `key` component of the S3 path.
20-
It also contains the `last_key` which represents the last part of the path (tipically a file).
20+
It also contains the `last_key` which represents the last part of the path (typically a file).
2121
2222
```python
2323
from pydantic import BaseModel

tests/test_coordinate.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def test_limit_for_coordinate(coord: (Any, Any), error: Optional[Pattern]):
112112
('-90.0', True),
113113
(Decimal('90.0'), True),
114114
(Decimal('-90.0'), True),
115-
# Unvalid latitude
115+
# Invalid latitude
116116
(91.0, False),
117117
(-91.0, False),
118118
(Decimal('91.0'), False),
@@ -144,7 +144,7 @@ def test_format_latitude(latitude: float, valid: bool):
144144
(-180.0, True),
145145
(Decimal('180.0'), True),
146146
(Decimal('-180.0'), True),
147-
# Unvalid latitude
147+
# Invalid latitude
148148
(181.0, False),
149149
(-181.0, False),
150150
(Decimal('181.0'), False),

tests/test_pendulum_dt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def test_pendulum_dt_from_serialized_preserves_timezones(dt):
178178
pendulum.now().to_iso8601_string(),
179179
pendulum.now().to_w3c_string(),
180180
'Sat Oct 11 17:13:46 UTC 2003', # date util parsing
181-
pendulum.now().to_iso8601_string()[:5], # actualy valid or pendulum.parse(dt, strict=False) would fail here
181+
pendulum.now().to_iso8601_string()[:5], # actually valid or pendulum.parse(dt, strict=False) would fail here
182182
],
183183
)
184184
def test_pendulum_dt_not_strict_from_serialized(dt):

0 commit comments

Comments
 (0)