Hi folks. I’m curious... in the Metaflow python tu...
# dev-metaflow
p
Hi folks. I’m curious... in the Metaflow python tutorials, I see things like this:
Copy code
genre = Parameter(
    "genre",
    help="Filter movies for a particular genre.",
    default="Sci-Fi"
)
And then later:
Copy code
if self.genre.lower() not in genres.lower()
Pylance quite reasonably complains about this:
Copy code
Cannot access member "lower" for type "Parameter"
  Member "lower" is unknown Pylance(reportGeneralTypeIssues)
And yet the code runs just fine. I’ve hunted around and I’m unable to find the magic that allows calling
lower()
(a
string
method) on
genre
(a
Parameter
of type string). Can anyone help me to understand what’s going on here?
1
d