def _from_str()

in google/cloud/sql/connector/enums.py [0:0]


    def _from_str(cls, refresh_strategy: str) -> RefreshStrategy:
        """Convert refresh strategy from a str into RefreshStrategy."""
        return cls(refresh_strategy.upper())