File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ This guide covers how to build and package python-newtype for development and di
66
77Before 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)
Original file line number Diff line number Diff 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
6452Don't wrap objects unnecessarily:
You can’t perform that action at this time.
0 commit comments