Postponed evaluation of annotations for integrations (#46455)

This commit is contained in:
Franck Nijhof 2021-02-12 18:54:00 +01:00 committed by GitHub
parent 061d9c5293
commit dd8d4471ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 54 additions and 22 deletions

View file

@ -1,4 +1,6 @@
"""Provides functionality to interact with lights."""
from __future__ import annotations
import csv
import dataclasses
from datetime import timedelta
@ -327,7 +329,7 @@ class Profile:
)
@classmethod
def from_csv_row(cls, csv_row: List[str]) -> "Profile":
def from_csv_row(cls, csv_row: List[str]) -> Profile:
"""Create profile from a CSV row tuple."""
return cls(*cls.SCHEMA(csv_row))