Compares the current aiter version to a given reference with an operation. Args: operation (`str`): A string representation of an operator, such as `">"` or `"<="` version (`str`): A version string
(operation: str, version: str)
| 922 | |
| 923 | @cache |
| 924 | def is_aiter_version(operation: str, version: str): |
| 925 | """ |
| 926 | Compares the current aiter version to a given reference with an operation. |
| 927 | |
| 928 | Args: |
| 929 | operation (`str`): |
| 930 | A string representation of an operator, such as `">"` or `"<="` |
| 931 | version (`str`): |
| 932 | A version string |
| 933 | """ |
| 934 | if not _aiter_available: |
| 935 | return False |
| 936 | return compare_versions(parse(_aiter_version), operation, version) |
| 937 | |
| 938 | |
| 939 | def get_objects_from_module(module): |
no test coverage detected
searching dependent graphs…