Commit 81e4046
authored
MINOR: [Python] Remove impossible TODO in server middleware (#48794)
### Rationale for this change
Remove a TODO comment that has been impossible to implement. The TODO asked to "prevent duplicate keys" in `_ServerMiddlewareFactoryWrapper.start_call()`, but this is already guaranteed by Python dict semantics. The TODO was added in commit d1848c8.
### What changes are included in this PR?
Remove the TODO comment from `python/pyarrow/_flight.pyx`. The `factories` attribute has always been typed as `dict` (both in Cython `cdef` and the `__init__` type hint), which inherently prevents duplicate keys.
### Are these changes tested?
I did not test.
### Are there any user-facing changes?
No.
Authored-by: Hyukjin Kwon <gurwls223@apache.org>
Signed-off-by: David Li <li.davidm96@gmail.com>1 parent ba2ccae commit 81e4046
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2836 | 2836 | | |
2837 | 2837 | | |
2838 | 2838 | | |
2839 | | - | |
2840 | 2839 | | |
2841 | 2840 | | |
2842 | 2841 | | |
| |||
0 commit comments