Commit f56a351
authored
fix: make max_len optional in GreedyEncoder constructor to match docs and tests (#346)
## SUMMARY
This PR fixes a mismatch in `GreedyEncoder` where `max_len` was required
in code but optional in docs and tests. It updates
`pyaptamer/trafos/encode/_greedy.py` to make `max_len` optional as
intended.
---
## FIX
**Before**
```python
max_len: int,
```
**After**
```python
max_len: int = None,
```
---
## VERIFICATION
Instantiating `GreedyEncoder` without `max_len` no longer throws a
`TypeError`. It now works as documented, and existing test params run
without issues.
Signed-off-by: Suhrid Marwah <suhridmarwah07@gmail.com>1 parent a5d1b58 commit f56a351
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
0 commit comments