Skip to content

Commit

Permalink
Small edits in README
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Jun 18, 2023
1 parent 38d40be commit 090f890
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1460,10 +1460,10 @@ python -m timeit -s "from typing import NewType; MyInt = NewType('MyInt', int)"
50000000 loops, best of 5: 4.35 nsec per loop
```

However, when you instantiate dataclasses using the `from_*` method, there will
be no performance degradation, because the value won't be enclosed in the
However, when you create dataclass instances using the `from_*` method, there
will be no performance degradation, because the value won't be enclosed in the
callable in the generated code. Therefore, if performance is more important
to you than catching logical errors by type checkers in case you are actively
to you than catching logical errors by type checkers, and you are actively
creating or changing dataclasses manually, then you should take a closer look
at using `Annotated`.

Expand Down

0 comments on commit 090f890

Please sign in to comment.