Some type: ignore lines may be able to be replaced with type: ignore[assignment] as a more specific indicator. A review of this should be undertaken.