Skip to content
Prev Previous commit
Next Next commit
fix
  • Loading branch information
dahhou-ilyas committed Oct 7, 2023
commit cff48ee4742b9547dccdeb212242c01b05009313
17 changes: 15 additions & 2 deletions dynamic_programming/wildcard_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,22 @@
"""
import datetime

import pytz

tz_maroc = pytz.timezone("Africa/Casablanca")
class CustomTimeZone(datetime.tzinfo):
def utcoffset(self, dt):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: utcoffset. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function utcoffset

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: utcoffset. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function utcoffset

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: utcoffset. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function utcoffset

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: utcoffset. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function utcoffset

Please provide type hint for the parameter: dt

print(dt)
return datetime.timedelta(hours=1)

def dst(self, dt):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: dst. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function dst

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: dst. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function dst

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: dst. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function dst

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: dst. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function dst

Please provide type hint for the parameter: dt

print(dt)
return datetime.timedelta(0)

def tzname(self, dt):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: tzname. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function tzname

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: tzname. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function tzname

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: tzname. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function tzname

Please provide type hint for the parameter: dt

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please provide return type hint for the function: tzname. If the function does not return a value, please provide the type hint as: def function() -> None:

As there is no test file in this pull request nor any test function or class in the file dynamic_programming/wildcard_matching.py, please provide doctest for the function tzname

Please provide type hint for the parameter: dt

print(dt)
return "Custom Time Zone"


tz_maroc = CustomTimeZone()

now_maroc = datetime.datetime.now(tz=tz_maroc)

Expand Down