Skip to content

Commit aa69a7b

Browse files
author
MarcoGorelli
committed
move versioneer to file
1 parent 8669a55 commit aa69a7b

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.github/workflows/python-dev.yml

-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ jobs:
7575
python -m pip install --upgrade pip setuptools wheel
7676
python -m pip install -i https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy
7777
python -m pip install git+https://github.com/nedbat/coveragepy.git
78-
python -m pip install versioneer[toml]
7978
python -m pip install -r ci/deps/actions-311-dev.txt
8079
python -m pip list
8180

ci/deps/actions-311-dev.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ pytest-xdist
66
pytest-cov
77
pytest-asyncio>=0.17
88
python-dateutil
9-
pytz
9+
pytz
10+
versioneer[toml]

pandas/_libs/tslibs/offsets.pyx

+4-5
Original file line numberDiff line numberDiff line change
@@ -367,25 +367,24 @@ cdef class BaseOffset:
367367
# dict _cache
368368

369369
def __init__(self, n=1, normalize=False):
370-
n = self._validate_n(n)
371-
self.n = n
372370
"""
373371
Number of multiples of the frequency.
374372
375373
Examples
376374
--------
377375
>>> pd.offsets.Hour(5).n
378376
5
379-
"""
380-
self.normalize = normalize
381-
"""
377+
382378
Return boolean whether the frequency can align with midnight.
383379
384380
Examples
385381
--------
386382
>>> pd.offsets.Hour(5).normalize
387383
False
388384
"""
385+
n = self._validate_n(n)
386+
self.n = n
387+
self.normalize = normalize
389388
self._cache = {}
390389

391390
def __eq__(self, other) -> bool:

0 commit comments

Comments
 (0)