Skip to content

Commit

Permalink
add type checker for requestparameter
Browse files Browse the repository at this point in the history
  • Loading branch information
clot27 committed Dec 27, 2022
1 parent 93fac62 commit d6a07f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram/request/_requestparameter.py
Expand Up @@ -20,7 +20,7 @@
import json
from dataclasses import dataclass
from datetime import datetime
from typing import List, Optional, Tuple
from typing import List, Optional, Sequence, Tuple

from telegram._files.inputfile import InputFile
from telegram._files.inputmedia import InputMedia
Expand Down Expand Up @@ -143,7 +143,7 @@ def from_input(cls, key: str, value: object) -> "RequestParameter":
"""Builds an instance of this class for a given key-value pair that represents the raw
input as passed along from a method of :class:`telegram.Bot`.
"""
if isinstance(value, list):
if not isinstance(value, str) and isinstance(value, Sequence):
param_values = []
input_files = []
for obj in value:
Expand Down

0 comments on commit d6a07f5

Please sign in to comment.