TYP: misc
Small set of typing changes to reduce the number of errors of pyright's reportGeneralTypeIssues from 1365 to 1309:

- return value for `_format_native_types`
- TypeVar for `tile_compat`
- When assigning literals to an instance variable, they need explicit type annotations (in this case for `CompressionOptions`), see https://github.com/microsoft/pyright/issues/3256
Hello @twoertwein! Thanks for updating this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:





















There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers: 

##### Comment last updated at 2022-03-26 02:32:25 UTC