Remove all duplicate items and return a new list preserving ordering >>> dedupe(["z","i","a","a","d","d"]) ['z', 'i', 'a', 'd']
(original: List)
| 297 | |
| 298 | |
| 299 | def dedupe(original: List) -> List: |
| 300 | """ |
| 301 | Remove all duplicate items and return a new list preserving ordering |
| 302 | >>> dedupe(["z","i","a","a","d","d"]) |
| 303 | ['z', 'i', 'a', 'd'] |
| 304 | """ |
| 305 | return list(dict.fromkeys(original)) |
| 306 | |
| 307 | |
| 308 | def get_affected_packages_by_patched_package( |
no outgoing calls
no test coverage detected