Skip to content

Commit 0959450

Browse files
author
root
committed
update docs
1 parent a6aec75 commit 0959450

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

docs/development/building.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This guide covers how to build and package python-newtype for development and di
66

77
Before building python-newtype, ensure you have the following installed:
88

9-
- Python 3.7 or later
9+
- Python 3.8 or later
1010
- Poetry (for dependency management)
1111
- pytest (for testing)
1212
- build (for building packages)

docs/development/performance.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,6 @@ The overhead is typically negligible for most applications but may become notice
4747

4848
### 1. Minimize Method Interception
4949

50-
Only intercept methods when necessary:
51-
52-
```python
53-
from newtype import NewType, newtype_exclude
54-
55-
class OptimizedDict(NewType(dict)):
56-
# Mark methods that don't need interception
57-
@newtype_exclude
58-
def get(self, key, default=None):
59-
return super().get(key, default)
60-
```
61-
6250
### 2. Avoid Unnecessary Wrapping
6351

6452
Don't wrap objects unnecessarily:

0 commit comments

Comments
 (0)