repo
stringclasses
15 values
pull_number
int64
147
18.3k
instance_id
stringlengths
14
31
issue_numbers
listlengths
1
3
base_commit
stringlengths
40
40
patch
stringlengths
289
585k
test_patch
stringlengths
355
6.82M
problem_statement
stringlengths
25
49.4k
hints_text
stringlengths
0
58.9k
created_at
timestamp[us, tz=UTC]date
2014-08-08 22:09:38
2024-06-28 03:13:12
version
stringclasses
110 values
PASS_TO_PASS
listlengths
0
4.82k
FAIL_TO_PASS
listlengths
1
1.06k
language
stringclasses
4 values
image_urls
listlengths
0
4
website links
listlengths
0
4
tqdm/tqdm
464
tqdm__tqdm-464
[ "459" ]
a8e586fd1371df147d9ebb809f8259411ad38124
diff --git a/examples/redirect_print.py b/examples/redirect_print.py --- a/examples/redirect_print.py +++ b/examples/redirect_print.py @@ -57,8 +57,9 @@ def some_fun(i): # tqdm needs the original stdout # and dynamic_ncols=True to autodetect console width for i in tqdm(range(3), file=orig_stdout, dynamic...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -1362,8 +1362,7 @@ def test_write(): assert after_err_res == [u'\rpos0 bar: 0%', u'\rpos0 bar: 10%', ...
No output on Python3 On both Python 3.5 and 3.6 on Ubuntu I get no output from this script. If I swap the order of `nothing` and `pb.set_description` then it magically works. ```python #!/usr/bin/env python from tqdm import tqdm # didn't want to use time.sleep to ensure nothing was happening there; this is...
2017-10-05T00:27:56Z
4.19
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests_tqdm.py::test_iterate_over_csv_rows", "tqdm/tests/tests_tqdm.py::test_file_output", "tqdm/tests/te...
[ "tqdm/tests/tests_tqdm.py::test_write" ]
Python
[]
[]
tqdm/tqdm
524
tqdm__tqdm-524
[ "299", "454" ]
c2286160b918d0eefbc3909575f5b79c88793787
diff --git a/tqdm/__init__.py b/tqdm/__init__.py --- a/tqdm/__init__.py +++ b/tqdm/__init__.py @@ -4,7 +4,7 @@ from ._tqdm_gui import tgrange from ._tqdm_pandas import tqdm_pandas from ._main import main -from ._monitor import TMonitor +from ._monitor import TMonitor, TqdmSynchronisationWarning from ._version impor...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -5,76 +5,134 @@ @with_setup(pretest, posttest) -def test_pandas_groupby_apply(): - """Test pandas.DataFrame.groupby(...).progress_apply""" +def test_pandas_series(): + """...
Remove support for *args in pandas wrappers Fix total computation for pandas apply migrated from #244, and rebased Wrong output in Windows console Standard Windows 10 console (cmd.exe). Python 3.6.2. Test code: ``` import tqdm import time for i in tqdm.trange(10): time.sleep(0.1) ``` Output: ![clipb...
@aplavin @CrazyPython not sure what you wanted to achieve with this. seems like once all the commits from #244 were squashed there's just the one change (drop support of `*args`). did i miss something? # [Codecov](https://codecov.io/gh/tqdm/tqdm/pull/299?src=pr&el=h1) Report > :exclamation: No coverage uploaded for pu...
2018-03-17T09:07:55Z
4.19
[ "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_deprecation" ]
[ "tqdm/tests/tests_pandas.py::test_pandas_data_frame", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas_apply_args_deprecation" ]
Python
[]
[]
tqdm/tqdm
535
tqdm__tqdm-535
[ "539", "535", "364" ]
a4b9c86db548b2d0dbb5af7a6bbdc26ab47e1eec
diff --git a/tqdm/_main.py b/tqdm/_main.py --- a/tqdm/_main.py +++ b/tqdm/_main.py @@ -128,7 +128,8 @@ def main(fp=sys.stderr): # sys.argv.pop(log) # logLevel = sys.argv.pop(log) logLevel = sys.argv[log + 1] - logging.basicConfig(level=getattr(logging, logLevel), + logging.basicConfig( ...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -1,7 +1,23 @@ -from nose.plugins.skip import SkipTest - from tqdm import tqdm -from tests_tqdm import with_setup, pretest, posttest, StringIO, closing +from tests_tqdm import with_s...
'tqdm' object has no attribute 'total' when using 'disable' and multiprocessing 'Pool' The following MWE shows how to get the error message described in the title: ```python from tqdm import tqdm from multiprocessing import Pool def f(arg): pass if __name__ == '__main__': pool = Pool() list(tq...
confirmed on linux py35 This happens with `tqdm.tqdm.pandas` as well. The issue seems to be that tqdm assumes the total count is the number of pandas columns, but `df.progress_apply(myfunction, axis=1)` is applying `myfunction` to *rows*, not *columns*. If you attempt to manually specify the total, tqdm throws and ...
2018-04-12T10:15:14Z
4.22
[ "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_data_frame", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas_apply_args_deprecation", "tqdm/tests/tests_pandas.py::t...
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_synchronisation.py::test_imap" ]
Python
[ "https://user-images.githubusercontent.com/824529/38671319-5dd90564-3e4b-11e8-8610-dcae47d357fe.png" ]
[]
tqdm/tqdm
537
tqdm__tqdm-537
[ "364", "539", "535" ]
a4b9c86db548b2d0dbb5af7a6bbdc26ab47e1eec
diff --git a/tqdm/_main.py b/tqdm/_main.py --- a/tqdm/_main.py +++ b/tqdm/_main.py @@ -128,7 +128,8 @@ def main(fp=sys.stderr): # sys.argv.pop(log) # logLevel = sys.argv.pop(log) logLevel = sys.argv[log + 1] - logging.basicConfig(level=getattr(logging, logLevel), + logging.basicConfig( ...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -1,7 +1,54 @@ -from nose.plugins.skip import SkipTest - from tqdm import tqdm -from tests_tqdm import with_setup, pretest, posttest, StringIO, closing +from tests_tqdm import with_s...
tqdm_notebook and tqdm.pandas fails when given *total* argument. My code: >import tqdm df = pandas dataframe with 1000 rows tqdm.tqdm_notebook().pandas(total="1000") df.progress_apply(myfunction, axis=1) The error: >C:\pythonstuff\lib\site-packages\tqdm\_tqdm.py in inner(df, func, *args, **kwargs) 511 ...
This happens with `tqdm.tqdm.pandas` as well. The issue seems to be that tqdm assumes the total count is the number of pandas columns, but `df.progress_apply(myfunction, axis=1)` is applying `myfunction` to *rows*, not *columns*. If you attempt to manually specify the total, tqdm throws and exception because it "got...
2018-04-13T05:50:10Z
4.22
[ "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_data_frame", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas_apply_args_deprecation", "tqdm/tests/tests_pandas.py::t...
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_pandas.py::test_pandas_rolling_expanding", "tqdm/tests/tests_synchronisation.py::test_imap" ]
Python
[]
[]
tqdm/tqdm
570
tqdm__tqdm-570
[ "570" ]
a2514e8ec0e5f71803cc392f9d696674e893ee01
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -581,6 +581,10 @@ def inner(df, func, *args, **kwargs): not isinstance(df, _Rolling_and_Expanding): # DataFrame or Panel axis = kwargs.get('axis', 0) + ...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -104,7 +104,7 @@ def task_func(x): assert res1.equals(res2) # apply - for axis in [0, 1]: + for axis in [0, 1, 'index', 'columns']: res...
When 'index' or 'columns' is passed as pandas axis, convert to corres… …ponding int - [x] I have visited the [source website], and in particular read the [known issues] - [x] I have searched through the [issue tracker] for duplicates - [ ] I have mentioned version numbers, operating system and environment, w...
# [Codecov](https://codecov.io/gh/tqdm/tqdm/pull/570?src=pr&el=h1) Report > Merging [#570](https://codecov.io/gh/tqdm/tqdm/pull/570?src=pr&el=desc) into [master](https://codecov.io/gh/tqdm/tqdm/commit/19cd7d735a235177b7f8a4413391226c4aac0c8d?src=pr&el=desc) will **decrease** coverage by `0.57%`. > The diff coverage is ...
2018-06-26T21:20:20Z
4.25
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_pandas.py::test_pandas_rolling_expanding", "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas...
[ "tqdm/tests/tests_pandas.py::test_pandas_data_frame" ]
Python
[]
[]
tqdm/tqdm
592
tqdm__tqdm-592
[ "591" ]
625a7dcd8e9e27bee012627e689573bcda8aadf1
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -13,7 +13,7 @@ # compatibility functions and utilities from ._utils import _supports_unicode, _environ_cols_wrapper, _range, _unich, \ _term_move_up, _unicode, WeakSet, _basestring, _OrderedDict, \ - Comparable + Comparab...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -255,6 +255,19 @@ def test_format_meter(): unich(0x258f) + "|test" +def test_ansi_escape_codes(): + """Test stripping of ANSI escape codes""" + format_meter = tqdm.format_...
Bar length not calculated correctly when ANSI color codes are used I am using ANSI color codes in the progress bar description string to emphasize success, failure etc. Unfortunately, the bar length calculation doesn't work as expected with these color codes. In the example below, the bar stops short of the termi...
Thanks. Maybe we should strip escape sequences... related to #450
2018-08-11T09:21:07Z
4.24
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests_tqdm.py::test_iterate_over_csv_rows", "tqdm/tests/tests_tqdm.py::test_file_output", "tqdm/tests/te...
[ "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes" ]
Python
[]
[]
tqdm/tqdm
597
tqdm__tqdm-597
[ "570" ]
a2514e8ec0e5f71803cc392f9d696674e893ee01
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -581,6 +581,10 @@ def inner(df, func, *args, **kwargs): not isinstance(df, _Rolling_and_Expanding): # DataFrame or Panel axis = kwargs.get('axis', 0) + ...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -104,7 +104,7 @@ def task_func(x): assert res1.equals(res2) # apply - for axis in [0, 1]: + for axis in [0, 1, 'index', 'columns']: res...
When 'index' or 'columns' is passed as pandas axis, convert to corres… …ponding int - [x] I have visited the [source website], and in particular read the [known issues] - [x] I have searched through the [issue tracker] for duplicates - [ ] I have mentioned version numbers, operating system and environment, w...
# [Codecov](https://codecov.io/gh/tqdm/tqdm/pull/570?src=pr&el=h1) Report > Merging [#570](https://codecov.io/gh/tqdm/tqdm/pull/570?src=pr&el=desc) into [master](https://codecov.io/gh/tqdm/tqdm/commit/19cd7d735a235177b7f8a4413391226c4aac0c8d?src=pr&el=desc) will **decrease** coverage by `0.57%`. > The diff coverage is ...
2018-08-21T21:20:05Z
4.25
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_pandas.py::test_pandas_rolling_expanding", "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas...
[ "tqdm/tests/tests_pandas.py::test_pandas_data_frame" ]
Python
[]
[]
tqdm/tqdm
601
tqdm__tqdm-601
[ "600", "566" ]
a2514e8ec0e5f71803cc392f9d696674e893ee01
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -581,6 +581,10 @@ def inner(df, func, *args, **kwargs): not isinstance(df, _Rolling_and_Expanding): # DataFrame or Panel axis = kwargs.get('axis', 0) + ...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -33,12 +33,12 @@ def test_pandas_rolling_expanding(): tqdm.pandas(file=our_file, leave=True, ascii=True) series = pd.Series(randint(0, 50, (123,))) - res1 ...
Fix a typo in error message Was having some issues in google colab, there I found this error message with a typo smoothing not working The smoothing function does not work. Both the examples below show same result in a notebook. 50% 5/10 [00:15<00:15, 3.01s/it] I think problem is in tqdm.py where it sets "avg_time=s...
@simonm3 Yes, you're right! This is definitely a bug. Both tqdm and tqdm_notebook do not work. And your suggestion is likely to be the way to fix it.
2018-09-06T06:19:20Z
4.251
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_pandas.py::test_pandas_rolling_expanding", "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas...
[ "tqdm/tests/tests_pandas.py::test_pandas_data_frame" ]
Python
[]
[]
tqdm/tqdm
603
tqdm__tqdm-603
[ "600" ]
a2514e8ec0e5f71803cc392f9d696674e893ee01
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -581,6 +581,10 @@ def inner(df, func, *args, **kwargs): not isinstance(df, _Rolling_and_Expanding): # DataFrame or Panel axis = kwargs.get('axis', 0) + ...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -33,12 +33,12 @@ def test_pandas_rolling_expanding(): tqdm.pandas(file=our_file, leave=True, ascii=True) series = pd.Series(randint(0, 50, (123,))) - res1 ...
Fix a typo in error message Was having some issues in google colab, there I found this error message with a typo
2018-09-09T10:45:07Z
4.251
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_pandas.py::test_pandas_rolling_expanding", "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas...
[ "tqdm/tests/tests_pandas.py::test_pandas_data_frame" ]
Python
[]
[]
tqdm/tqdm
617
tqdm__tqdm-617
[ "611" ]
350640d3171a568fb3f22d64d898e154541acc56
diff --git a/tqdm/_tqdm.py b/tqdm/_tqdm.py --- a/tqdm/_tqdm.py +++ b/tqdm/_tqdm.py @@ -69,30 +69,23 @@ class TqdmMonitorWarning(TqdmWarning, RuntimeWarning): pass -# Create global parallelism locks to avoid racing issues with parallel bars -# works only if fork available (Linux, MacOSX, but not on Windows) -tr...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -710,6 +710,44 @@ def test_smoothed_dynamic_min_iters_with_min_interval(): assert '14%' in out and '14%' in out2 +@with_setup(pretest, posttest) +def test_rlock_creation(): + """...
PyTorch TQDM conflict ``DataLoader`` when interacting with ``DistributedDataParallel`` and ``tqdm==4.26.0`` causes semaphores to leak. PyTorch issue: https://github.com/pytorch/pytorch/issues/9985#issuecomment-421502889 Any ideas on resolving this? ```python from torch import multiprocessing # DEPENDANCY:...
@PetrochukM I tried the following code with the lastest pytorch(0.4.1) and tqdm(v4.26) in python2.7 and python3.6 ```python from torch import multiprocessing # DEPENDANCY: This is required for ``DistributedDataParallel`` # https://pytorch.org/docs/stable/nn.html?highlight=distributeddataparallel#torch.nn.parall...
2018-09-21T22:42:06Z
4.28
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests_t...
[ "tqdm/tests/tests_tqdm.py::test_rlock_creation" ]
Python
[]
[]
tqdm/tqdm
738
tqdm__tqdm-738
[ "679", "545" ]
ebda7120efef500f6a7c8dea80e5ea6f47090803
diff --git a/mkdocs.py b/mkdocs.py --- a/mkdocs.py +++ b/mkdocs.py @@ -20,14 +20,20 @@ """ -def doc2rst(doc, arglist=True): +def doc2rst(doc, arglist=True, raw=False): """ arglist : bool, whether to create argument lists + raw : bool, ignores arglist and indents by 2 spaces """ - doc = deden...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -895,15 +895,9 @@ def test_update(): assert '| 2/2' in our_file.getvalue() progressbar.desc = 'dynamically notify of 4 increments in total' progressbar...
Rename RMOTR Notebooks to Notebooks AI Guys, we've moved RMOTR Notebooks into its own domain https://notebooks.ai/, to keep it as a separated product. Single line PR to update the Demo link URL. Move progress bar back to a value? If i want to set the progress bar to a specific point, update only allows postive valu...
just set n manually and then update. See #374 #432 ```python from tqdm import tqdm from time import sleep pbar = tqdm(range(100)) pbar.update(50) pbar.refresh() sleep(2) pbar.n = 10 #check this pbar.refresh() #check this sleep(2) pbar.update(30) ``` @casperdcl how about we add this into Faq of README an...
2019-05-10T21:16:16Z
4.31
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests_t...
[ "tqdm/tests/tests_tqdm.py::test_update", "tqdm/tests/tests_tqdm.py::test_reset" ]
Python
[]
[]
tqdm/tqdm
822
tqdm__tqdm-822
[ "805", "803" ]
1b1ec3e3abc798b6d4a01426657acc89d01137f6
diff --git a/tqdm/std.py b/tqdm/std.py --- a/tqdm/std.py +++ b/tqdm/std.py @@ -12,7 +12,7 @@ from __future__ import division # compatibility functions and utilities from .utils import _supports_unicode, _environ_cols_wrapper, _range, _unich, \ - _term_move_up, _unicode, WeakSet, _basestring, _OrderedDict, \ + ...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Advice: use repr(our_file.read()) to print the full output of tqdm # (else '\r' will replace the previous lines and you'll see only the latest. @@...
Recognize wide characters when calculating bar size Updated #410 to current master with added (and not failing) tests. Closes #410. Fixes #803 I also added a comment regarding using `wcswidth`, but I didn't want to add a dependency in a PR. Use unicodedata.east_asian_width to determine actual width of provided t...
2019-10-10T16:52:25Z
4.36
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_bar_formatspec", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests...
[ "tqdm/tests/tests_tqdm.py::test_format_meter" ]
Python
[]
[]
tqdm/tqdm
834
tqdm__tqdm-834
[ "407", "821" ]
91494ccf363e5eeb4745db7dbab70ef73c4a6eb0
diff --git a/examples/parallel_bars.py b/examples/parallel_bars.py --- a/examples/parallel_bars.py +++ b/examples/parallel_bars.py @@ -1,38 +1,41 @@ from __future__ import print_function from time import sleep from tqdm import tqdm, trange +from random import random from multiprocessing import Pool, freeze_support ...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -1,3 +1,4 @@ +# -*- coding: utf-8 -*- # Advice: use repr(our_file.read()) to print the full output of tqdm # (else '\r' will replace the previous lines and you'll see only the latest. @@...
The canonical multiprocessing example displays only a single bar I'm trying to use `tqdm` to monitor multiple FTP downloads using `ftplib`. Browsing around the documentation led me to this "canonical" example: ``` from time import sleep from tqdm import tqdm from multiprocessing import Pool, freeze_support def...
This is annoying. It works fine on py27... There is indeed something weird with py3. Have you seen #329? I did have a look at #329, but quickly reached the limit of my understanding when looking at the code examples :-). Entertainingly, when I run the canonical code under Python 2 on my system, I get a different result...
2019-10-31T16:56:34Z
4.36
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_bar_formatspec", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests...
[ "tqdm/tests/tests_tqdm.py::test_format_meter" ]
Python
[]
[]
tqdm/tqdm
850
tqdm__tqdm-850
[ "716", "690" ]
81065068901665949fa90b82e9ee60198fb11980
diff --git a/tqdm/std.py b/tqdm/std.py --- a/tqdm/std.py +++ b/tqdm/std.py @@ -10,8 +10,8 @@ from __future__ import absolute_import, division # compatibility functions and utilities from .utils import _supports_unicode, _environ_cols_wrapper, _range, _unich, \ - _term_move_up, _unicode, WeakSet, _basestring, _Ord...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -9,6 +9,7 @@ from nose import with_setup from nose.plugins.skip import SkipTest from nose.tools import assert_raises +from nose.tools import eq_ from contextlib import contextmanager fr...
Add fixed width bar `bar_width` and chop overflow on ncols - added bar_width to initializer and format_meter - added better ncols handling for overflows on l_bar, bar, r_bar - added tests This fixes #623 This fixes #690 This helps prevent the spillover seen in #630 This option (bar_width) prevents the bar por...
sort of duplicate of #630 Don't think there's a better solution than pre-formatting. For example: `tqdm(..., bar_format="{desc:9.9s}: {percentage:3.0f}%|{bar}{r_bar}"` if you want a consistent `desc` of length `9`. I'm not entirely sure I agree it's a duplicate - but that's up to you. However, the ghostin...
2019-11-23T02:01:51Z
4.40
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_bar_formatspec", "tqdm/tests/tests_tqdm.py::test_all_defaults", "tqdm/tests/tests_tqdm.py::test_native_string_io_for_default_file", "...
[ "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes" ]
Python
[]
[]
tqdm/tqdm
863
tqdm__tqdm-863
[ "862", "862" ]
42761473f9edf276937cc3a28a6fcabc59f5f97d
diff --git a/tqdm/std.py b/tqdm/std.py --- a/tqdm/std.py +++ b/tqdm/std.py @@ -732,7 +732,10 @@ def inner(df, func, *args, **kwargs): " Use keyword arguments instead.", fp_write=getattr(t.fp, 'write', sys.stderr.write)) - func = df._is_builtin_func(func...
diff --git a/tqdm/tests/tests_pandas.py b/tqdm/tests/tests_pandas.py --- a/tqdm/tests/tests_pandas.py +++ b/tqdm/tests/tests_pandas.py @@ -103,6 +103,11 @@ def task_func(x): res2 = df.applymap(task_func) assert res1.equals(res2) + # apply unhashable + res1 = [] + df.progress_app...
progress_apply bug: TypeError: unhashable type - [x] I have marked all applicable categories: + [x] exception-raising bug + [ ] visual output bug + [ ] documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand [StackOverflow#tqdm] is more app...
Having this bug too, with `tqdm==4.40.0` and `pandas==0.25.3`: ``` TypeError: ('expected string or bytes-like object', 'occurred at index content.message') ``` Will fix in a few hours Having this bug too, with `tqdm==4.40.0` and `pandas==0.25.3`: ``` TypeError: ('expected string or bytes-like object', 'occurre...
2019-12-09T17:54:33Z
4.40
[ "tqdm/tests/tests_pandas.py::test_pandas_setup", "tqdm/tests/tests_pandas.py::test_pandas_rolling_expanding", "tqdm/tests/tests_pandas.py::test_pandas_series", "tqdm/tests/tests_pandas.py::test_pandas_groupby_apply", "tqdm/tests/tests_pandas.py::test_pandas_leave", "tqdm/tests/tests_pandas.py::test_pandas...
[ "tqdm/tests/tests_pandas.py::test_pandas_data_frame" ]
Python
[]
[]
tqdm/tqdm
922
tqdm__tqdm-922
[ "918", "912" ]
80be780ab988c20048ade293ef84d2d8fd9e922a
diff --git a/tqdm/contrib/concurrent.py b/tqdm/contrib/concurrent.py --- a/tqdm/contrib/concurrent.py +++ b/tqdm/contrib/concurrent.py @@ -2,8 +2,18 @@ Thin wrappers around `concurrent.futures`. """ from __future__ import absolute_import +from tqdm import TqdmWarning from tqdm.auto import tqdm as tqdm_auto from co...
diff --git a/tqdm/tests/tests_concurrent.py b/tqdm/tests/tests_concurrent.py --- a/tqdm/tests/tests_concurrent.py +++ b/tqdm/tests/tests_concurrent.py @@ -1,6 +1,7 @@ """ Tests for `tqdm.contrib.concurrent`. """ +from warnings import catch_warnings from tqdm.contrib.concurrent import thread_map, process_map from t...
add `nrows` - expose a new argument `nrows=None` + default: auto-detect terminal height with some sensible default such as `20` (similar to `ncols`) - hide bars `if n < total and pos >= nrows` + completed/`close()`d bars will ignore `nrows` and just print according to `leave` - [ ] TODO: link related issues...
2020-03-25T00:18:29Z
4.43
[ "tqdm/tests/tests_concurrent.py::test_thread_map", "tqdm/tests/tests_concurrent.py::test_process_map", "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes", "tqdm/t...
[ "tqdm/tests/tests_concurrent.py::test_chunksize_warning", "tqdm/tests/tests_tqdm.py::test_screen_shape" ]
Python
[]
[]
tqdm/tqdm
924
tqdm__tqdm-924
[ "918" ]
23ce11d8a712fe5983fa89fa2f3fe1cb103e9d00
diff --git a/tqdm/std.py b/tqdm/std.py --- a/tqdm/std.py +++ b/tqdm/std.py @@ -9,7 +9,7 @@ """ from __future__ import absolute_import, division # compatibility functions and utilities -from .utils import _supports_unicode, _environ_cols_wrapper, _range, _unich, \ +from .utils import _supports_unicode, _screen_shape_...
diff --git a/tqdm/tests/tests_tqdm.py b/tqdm/tests/tests_tqdm.py --- a/tqdm/tests/tests_tqdm.py +++ b/tqdm/tests/tests_tqdm.py @@ -194,8 +194,7 @@ def squash_ctrlchars(s): lines = [''] # state of our fake terminal # Split input string by control codes - RE_ctrl = re.compile("(%s)" % ("|".join(CTRLCHR)),...
add `nrows` - expose a new argument `nrows=None` + default: auto-detect terminal height with some sensible default such as `20` (similar to `ncols`) - hide bars `if n < total and pos >= nrows` + completed/`close()`d bars will ignore `nrows` and just print according to `leave` - [ ] TODO: link related issues...
2020-03-28T15:07:40Z
4.43
[ "tqdm/tests/tests_tqdm.py::test_format_interval", "tqdm/tests/tests_tqdm.py::test_format_num", "tqdm/tests/tests_tqdm.py::test_format_meter", "tqdm/tests/tests_tqdm.py::test_ansi_escape_codes", "tqdm/tests/tests_tqdm.py::test_si_format", "tqdm/tests/tests_tqdm.py::test_bar_formatspec", "tqdm/tests/tests...
[ "tqdm/tests/tests_tqdm.py::test_screen_shape" ]
Python
[]
[]
dateutil/dateutil
147
dateutil__dateutil-147
[ "146" ]
e47b41c376625aced034321f946ffea555bc315b
diff --git a/dateutil/tz/tz.py b/dateutil/tz/tz.py --- a/dateutil/tz/tz.py +++ b/dateutil/tz/tz.py @@ -307,10 +307,10 @@ def __init__(self, fileobj, filename=None): # The pairs of values are sorted in ascending order # by time. - # Not used, for now - # if leapcnt: - ...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -297,8 +297,35 @@ def testRoundNonFullMinutes(self): def testLeapCountDecodesProperly(self): # This timezone has leapcnt, and failed to decode until # Eugene Oden noti...
tzfile does not correctly parse files due to its ignoring of leap data The relevant part in the tzfile implementation does not read from the file if leapcnt is given: https://github.com/dateutil/dateutil/blob/master/dateutil/tz/tz.py#L309-L312: ``` # Not used, for now # if leapcnt: # leap =...
2015-11-02T15:31:06Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionInvalidType (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionToDatetime (dateutil.test.test_relativedelta.RelativeDeltaTest)", "tes...
[ "testIsStd (dateutil.test.test_tz.TZTest)", "testLeapCountDecodesProperly (dateutil.test.test_tz.TZTest)" ]
Python
[]
[]
dateutil/dateutil
207
dateutil__dateutil-207
[ "104" ]
98a57e95b42240832bee452d74b33746fdd874ac
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -65,6 +65,7 @@ class weekday(object): def __init__(self, weekday, n=None): if n == 0: raise ValueError("Can't create weekday with n == 0") + self.weekday = weekday self.n = ...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals from ._common import WarningTestMixin, unittest +import calendar from datetime import datetime, date from six import PY...
ruleset.count() not changing after applying ruleset.exrule() Seems like the ruleset.count() is getting cached after first call to it. An Example of this behavior - ``` >>> rules = rrule.rruleset() >>> rules.rrule(rrule.rrule(rrule.DAILY, until=datetime.datetime(2038,1,1,0,0,0), dtstart=datetime.datetime(now.year,now.m...
The issue here is that `rrulebase` caches the length after the first call to `count()`, and this cache is not invalidated when changes are made to the rruleset: ``` python from datetime import datetime as dt from dateutil import rrule as rr dts = dt(2015, 8, 11) dte = dt(2016, 8, 11) crr = rr.rrule(rr.DAILY, dtstart...
2016-03-05T21:43:20Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionToDatetime (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testBoolean (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testComparison ...
[ "testSetExDateCount (dateutil.test.test_rrule.RRuleSetTest)", "testSetExRuleCount (dateutil.test.test_rrule.RRuleSetTest)", "testSetRDateCount (dateutil.test.test_rrule.RRuleSetTest)", "testSetRRuleCount (dateutil.test.test_rrule.RRuleSetTest)" ]
Python
[]
[]
dateutil/dateutil
229
dateutil__dateutil-229
[ "81", "217" ]
061e835e726937a90e143d0d2c28630c97c982f7
diff --git a/dateutil/parser.py b/dateutil/parser.py --- a/dateutil/parser.py +++ b/dateutil/parser.py @@ -464,7 +464,10 @@ def resolve_ymd(self, mstridx, yearfirst, dayfirst): self.find_probable_year_index(_timelex.split(self.tzstr)) == 0 or \ (yearfirst and self[1] <= 12 and s...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -777,3 +777,40 @@ def testParseWithNulls(self): self.assertEqual(parse(pstring), datetime(1924, 8, 29)) + def testNoYearFirstNoDayFirs...
Parser doesn't use dayfirst and yearfirst when no separator It always uses the format: YYMMDD or YYYYMMDD despite if yearfirst is set to False or dayfirst is set to True. I think it should try: - yearfirst=False and dayfirst=False: MMDDYY - yearfirst=True and dayfirst=False: YYMMDD - yearfirst=True and dayfirst=True: Y...
Yes, good point. I think that this is easy enough to address. The relevant section of `parser` is [here](https://github.com/dateutil/dateutil/blob/master/dateutil/parser.py#L669) in case anyone wants to fix it before I get around to it. It seems that this issue as been partly fixed in master. yearfirst=False and dayf...
2016-03-26T18:28:37Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionInvalidType (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionToDatetime (dateutil.test.test_relativedelta.RelativeDeltaTest)", "tes...
[ "testDayFirstYearFirst (dateutil.test.test_parser.ParserTest)" ]
Python
[]
[]
dateutil/dateutil
234
dateutil__dateutil-234
[ "233" ]
3a89384315dcd4d485e1cdeaa1ba583ec17a6787
diff --git a/dateutil/parser.py b/dateutil/parser.py --- a/dateutil/parser.py +++ b/dateutil/parser.py @@ -464,7 +464,7 @@ def resolve_ymd(self, mstridx, yearfirst, dayfirst): self.find_probable_year_index(_timelex.split(self.tzstr)) == 0 or \ (yearfirst and self[1] <= 12 and se...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -813,4 +813,18 @@ def testDayFirstYearFirst(self): self.assertEqual(parse(dtstr, yearfirst=True, dayfirst=True), datetime(2009, 7, 1)) + ...
Error parsing unambiguous dates It seems in version 2.5.2, there started being problems parsing unambiguous dates that don't follow the specified dayfirst option: ``` python >>> import dateutil >>> dateutil.__version__ '2.5.2' >>> dateutil.parser.parse('2010 09 25', dayfirst=True) Traceback (most recent call last): ...
This was most certainly not an ambiguous change, and probably can be patched in a bugfix release. The 2.5.2 release doesn't have much in it (mainly it was just released to update the `tzdata` update), so I suggest using the 2.5.1 release if possible until we can get out a fix. Note - if anyone goes to fix this before ...
2016-03-29T17:26:56Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionInvalidType (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionToDatetime (dateutil.test.test_relativedelta.RelativeDeltaTest)", "tes...
[ "testUnambiguousDayFirst (dateutil.test.test_parser.ParserTest)", "testUnambiguousDayFirstYearFirst (dateutil.test.test_parser.ParserTest)" ]
Python
[]
[]
dateutil/dateutil
247
dateutil__dateutil-247
[ "171" ]
d6a830bf3c1efe102f70f1c4419e2d62583eaaa5
diff --git a/dateutil/parser.py b/dateutil/parser.py --- a/dateutil/parser.py +++ b/dateutil/parser.py @@ -56,6 +56,10 @@ def __init__(self, instream): if isinstance(instream, text_type): instream = StringIO(instream) + if getattr(instream, 'read', None) is None: + raise TypeEr...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -7,7 +7,9 @@ from dateutil.tz import tzoffset from dateutil.parser import * +import six from six import assertRaisesRegex, PY3 +from six.moves import StringIO class P...
Passing `None` to parser raises `AttributeError` If `None` is passed to the parser, I would expect either a `ValueError` or a `TypeError` to be raised, but instead `AttributeError` is raised because it tries to call `read` on the object. With `datetime.datetime.strptime`, if you pass it anything other than a string typ...
2016-04-10T00:16:10Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionInvalidType (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionToDatetime (dateutil.test.test_relativedelta.RelativeDeltaTest)", "tes...
[ "testInvalidType (dateutil.test.test_parser.ParserTest)", "testNone (dateutil.test.test_parser.ParserTest)" ]
Python
[]
[]
dateutil/dateutil
263
dateutil__dateutil-263
[ "262" ]
d5ebaf8541a8e312af7b85b6d2e71d637fee5f18
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -707,7 +707,7 @@ def __str__(self): parts.append('INTERVAL=' + str(self._interval)) if self._wkst: - parts.append('WKST=' + str(self._wkst)) + parts.append('WKST=' + repr(w...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -4382,6 +4382,12 @@ def testToStrSecondlyByHourAndMinuteAndSecondBug(self): byminute=(1,), dtstart=datetime(2010, 3,...
rrule.__str__ doesn't render wkst properly `rrule.__str__` is rendering `WKST` as an integer instead of as a weekday. For example: ``` python >>> rule = dateutil.rrule.rrulestr("DTSTART:20000101\nFREQ=WEEKLY;WKST=SU") >>> str(rule) 'DTSTART:20000101T000000\nFREQ=WEEKLY;WKST=6' ``` This breaks compatibility with RFC55...
2016-04-28T14:14:55Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionInvalidType (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAdditionToDatetime (dateutil.test.test_relativedelta.RelativeDeltaTest)", "tes...
[ "testToStrWithWkSt (dateutil.test.test_rrule.RRuleTest)" ]
Python
[]
[]
dateutil/dateutil
309
dateutil__dateutil-309
[ "292" ]
a0d2b85c2c5da4103b54eaf4c722fc1b2d78bc79
diff --git a/dateutil/tz/tz.py b/dateutil/tz/tz.py --- a/dateutil/tz/tz.py +++ b/dateutil/tz/tz.py @@ -675,6 +675,9 @@ def utcoffset(self, dt): return self._find_ttinfo(dt).delta def dst(self, dt): + if dt is None: + return None + if not self._ttinfo_dst: return Z...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -845,6 +845,21 @@ def testTimeOnlyGettz(self): tz_get = self.gettz('Europe/Minsk') self.assertIs(dt_time(13, 20, tzinfo=tz_get).utcoffset(), None) + def testTimeOnlyGe...
AttributeError when strftime argument includes "%Z" for datetime.time I'm getting an exception in the following: (dateutil is version 2.5.3) ``` python $ python3 Python 3.5.2 (default, Sep 5 2016, 18:54:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux Type "help", "copyright", "credits" or "license" for more in...
2016-11-06T19:26:30Z
2.5
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_rela...
[ "testTimeOnlyFormatZ (dateutil.test.test_tz.GettzTest)", "testTimeOnlyGettzDST (dateutil.test.test_tz.GettzTest)", "testTimeOnlyGettzTzName (dateutil.test.test_tz.GettzTest)", "testTimeOnlyFormatZ (dateutil.test.test_tz.ZoneInfoGettzTest)", "testTimeOnlyGettzDST (dateutil.test.test_tz.ZoneInfoGettzTest)", ...
Python
[]
[]
dateutil/dateutil
330
dateutil__dateutil-330
[ "329" ]
138c06fa2ab9884bb9996d9407cea6f8ac88d88b
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -256,13 +256,13 @@ def xafter(self, dt, count=None, inc=False): n = 0 for d in gen: if comp(d, dt): - yield d - if count is not None: ...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -2472,6 +2472,12 @@ def testCount(self): dtstart=datetime(1997, 9, 2, 9, 0)).count(), 3) + def testCountZero(self):...
Infinite loop in rrule.rrule if count is set to 0 `rrule.rrule` yields values indefinitely if the `count` argument is set to 0. Example: ``` In [2]: for x in rrule.rrule(freq=rrule.DAILY, count=1): print(x) 2016-12-01 17:53:11 In [3]: for x in rrule.rrule(freq=rrule.DAILY, count=0): print(x) 2016-12-01 17:53:1...
@vaultah Yes, this is definitely a problem. It's not so much an infinite loop, though, since `rrule` is by default an infinite generator anyway, it's just that `count` is being ignored. I haven't looked at where it's happening in the code, but I suspect that there's a check like `if count` somewhere in there, expect...
2016-12-03T23:56:49Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_rela...
[ "testCountZero (dateutil.test.test_rrule.RRuleTest)" ]
Python
[]
[]
dateutil/dateutil
347
dateutil__dateutil-347
[ "346" ]
6d55cd6ba37726daa2f3598ee4e469d0a207d0ec
diff --git a/dateutil/relativedelta.py b/dateutil/relativedelta.py --- a/dateutil/relativedelta.py +++ b/dateutil/relativedelta.py @@ -311,14 +311,22 @@ def __add__(self, other): microseconds=(other.microseconds + self.microseconds), ...
diff --git a/dateutil/test/test_relativedelta.py b/dateutil/test/test_relativedelta.py --- a/dateutil/test/test_relativedelta.py +++ b/dateutil/test/test_relativedelta.py @@ -180,6 +180,12 @@ def testAddition(self): relativedelta(years=1, months=2, days=13, hours=4, ...
wrong implementation of adding relativedelta's Excerpt of `dateutil.relativedelta` for Python3.5, `dateutil==2.6.0`: def __add__(self, other): if isinstance(other, relativedelta): return self.__class__(years=other.years + self.years, ... ...
2017-02-06T23:41:17Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddition (dateutil.test.test_rela...
[ "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)" ]
Python
[]
[]
dateutil/dateutil
390
dateutil__dateutil-390
[ "321" ]
2b1fad77467a036f88156dca73647a48f5bff9d0
diff --git a/dateutil/tz/_common.py b/dateutil/tz/_common.py --- a/dateutil/tz/_common.py +++ b/dateutil/tz/_common.py @@ -162,7 +162,7 @@ def _fromutc(self, dt): occurence, chronologically, of the ambiguous datetime). :param dt: - A timezone-aware :class:`datetime.dateime` object. + ...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -274,6 +274,28 @@ def testGapNegativeUTCOffset(self): self.assertEqual(t0.utcoffset(), timedelta(hours=-5.0)) self.assertEqual(t1.utcoffset(), timedelta(hours=-4.0)...
Issue with London time during ambiguous time. Evidently the `fromutc()` algorithm for `tzfile` is not working quite right for some zones, as first reported by @jreback on pandas-dev/pandas#14631 ```python >>> from dateutil import tz >>> from datetime import datetime >>> LON = tz.gettz('Europe/London') >>> dt = t...
2017-06-03T18:39:06Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.t...
[ "testFoldLondon (dateutil.test.test_tz.GettzTest)", "testFoldLondon (dateutil.test.test_tz.TZICalTest)", "testFoldLondon (dateutil.test.test_tz.TzLocalNixTest)", "testFoldLondon (dateutil.test.test_tz.ZoneInfoGettzTest)" ]
Python
[]
[]
dateutil/dateutil
393
dateutil__dateutil-393
[ "333" ]
3bdd393ed4647b830644aaa1f43036fbe4db5d39
diff --git a/dateutil/parser.py b/dateutil/parser.py --- a/dateutil/parser.py +++ b/dateutil/parser.py @@ -793,17 +793,21 @@ def _parse(self, timestr, dayfirst=None, yearfirst=None, fuzzy=False, elif (i == len_l and l[i-2] == ' ' and info.hms(l[i-3]) is not None): ...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -452,6 +452,26 @@ def testHourWithLettersStrip4(self): self.assertEqual(parse("10 h 36", default=self.default), datetime(2003, 9, 25, 10, 3...
Indentation typo in _parse? parser.py, lines 794-802: if idx == 1: res.minute = int(value) if value % 1: res.second = int(60*(value % 1)) elif idx == 2: res.second, res.microsecond = \ _parsems(value_repr) i ...
Yes, this definitely seems wrong, I'll have to look into it to understand what this code does... OK, the `elif` branch definitely is supposed to be on the level of `if idx == 1`. Working on a test to show that this actually causes a bug. (I think it will fail to parse, e.g. `14 m 30` incorrectly) Still not sure what...
2017-06-04T13:04:09Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.t...
[ "testMinuteWithLettersSpaces1 (dateutil.test.test_parser.ParserTest)", "testMinuteWithLettersSpaces3 (dateutil.test.test_parser.ParserTest)" ]
Python
[]
[]
dateutil/dateutil
429
dateutil__dateutil-429
[ "401" ]
6ac07d2c18ca2d5c9a30eeb2eb5f82d556091774
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -1560,8 +1560,19 @@ def _parse_rfc(self, s, raise ValueError("unsupported EXDATE parm: "+parm) exdatevals.append(value) elif name == "DTSTART": + ...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -2831,6 +2831,20 @@ def testStrUntil(self): datetime(1998, 1, 6, 9, 0), datetime(1998, 12, 31, 9, 0)]) + def testStrVal...
ValueError: unsupported DTSTART parm: VALUE=DATE-TIME I reported this on khal: https://github.com/pimutils/khal/issues/679 and radicale: https://github.com/Kozea/Radicale/issues/646 When trying When trying to sync a calendar built from khal to radicale I get Traceback (most recent call last): File "/usr/lib/p...
@potuz This does not at all seem to be a bug. If you can show me a valid `RRULE` that doesn't parse correctly, then we can work from there, but it seems to me that your issue is that something you're using is generating `RRULE` objects that set a start date of `DATE-TIME`. Silently ignoring a malformed `RRULE` is not t...
2017-07-27T19:45:54Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.t...
[ "testStrValueDate (dateutil.test.test_rrule.RRuleTest)", "testStrValueDatetime (dateutil.test.test_rrule.RRuleTest)" ]
Python
[]
[]
dateutil/dateutil
450
dateutil__dateutil-450
[ "86" ]
0273da386ad6f45651327554a41d3f7f513ccf32
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -730,7 +730,7 @@ def __str__(self): parts.append(partfmt.format(name=name, vals=(','.join(str(v) for v in value)))) - output.appen...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -26,6 +26,20 @@ def _rrulestr_reverse_test(self, rule): self.assertEqual(list(rule), list(rrulestr_rrule)) + def testStrAppendRRULEToken(self): + # `_rrule...
Why rrulestr and rrule.__str__ omit RRULE paramter? `str(rrule.rrulestr('DTSTART:19970105T083000\nRRULE:FREQ=YEARLY;INTERVAL=2;BYMONTH=1;BYDAY=SU;BYHOUR=8,9;BYMINUTE=30'))` Gives: `'DTSTART:19970105T083000\nFREQ=YEARLY;INTERVAL=2;BYMONTH=1;BYDAY=SU;BYHOUR=8,9;BYMINUTE=30'` `str(rrule.rrule(freq=rrule.DAILY, dtstart=dt...
@jarondl Is [this branch](https://github.com/dateutil/dateutil/commit/1e95518f419067ee835d6931ba29afdb23eff595) ready for a PR or merge? I've got this issue assigned to milestone 2.5.0, and I'm thinking it's about time to prep a release. Pushing this to 2.5.1, because I'm not 100% sure this is necessary.
2017-08-17T20:43:02Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.t...
[ "testStrAppendRRULEToken (dateutil.test.test_rrule.RRuleTest)" ]
Python
[]
[]
dateutil/dateutil
472
dateutil__dateutil-472
[ "350" ]
c8c38c7475a7ba17d7e1a63c85749f6650aeab80
diff --git a/dateutil/relativedelta.py b/dateutil/relativedelta.py --- a/dateutil/relativedelta.py +++ b/dateutil/relativedelta.py @@ -422,6 +422,24 @@ def __sub__(self, other): is not None else other.microsecond)) + def __abs__(...
diff --git a/dateutil/test/test_relativedelta.py b/dateutil/test/test_relativedelta.py --- a/dateutil/test/test_relativedelta.py +++ b/dateutil/test/test_relativedelta.py @@ -245,6 +245,20 @@ def testBoolean(self): self.assertFalse(relativedelta(days=0)) self.assertTrue(relativedelta(days=1)) + d...
relativedelta does not implement __lt__ `relativedelta(months=+2) < relativedelta(months=+6)` should return be True but gets evaluated to False. I see that relative delta does not implement __lt__. Is there any reason for that?
I'm not sure I agree that comparison should be implemented such that it returns `True` or `False` in that way, since I don't think it really makes sense to compare to `relativedelta` objects like that. Consider, what should be the answers to the following comparisons? ```python relativedelta(months=1) < relativedel...
2017-10-10T01:32:31Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToPopulatedRelativeDelta (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAddTimedeltaToUnpopulatedRelativedelta (dateutil.test.t...
[ "testAbsoluteValueNegative (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValuePositive (dateutil.test.test_relativedelta.RelativeDeltaTest)" ]
Python
[]
[]
dateutil/dateutil
482
dateutil__dateutil-482
[ "353" ]
69328241383766318939d1439b5013bf89822702
diff --git a/dateutil/parser.py b/dateutil/parser.py --- a/dateutil/parser.py +++ b/dateutil/parser.py @@ -830,7 +830,7 @@ def _parse(self, timestr, dayfirst=None, yearfirst=None, fuzzy=False, ymd.append(value) i += 1 - elif info.ampm(l[i + 1]) ...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -909,3 +909,8 @@ def test_idx_check(self): res = parse(dtstr, fuzzy=True) self.assertEqual(res, datetime(2017, 7, 17, 6, 15)) + def test_validate_hour(...
There are no exception during parse wrong year in datetime string Parser will not raise exceptions If you specify wrong year "201A". Sample code: ``` from dateutil import parser origin = "201A-01-01T23:58:39.239769+03:00" parsed = parser.parse(origin) print("origin={}".format(origin)) print("parsed={}".format(...
Possibly related to #326 and #360 (though maybe completely different). The problem here is that in the `i=0` step of the parsing, `info.ampm(l[i + 1]) is not None` and so we do two incorrect things: 1) set `res.hour = 201`, and 2) later overwrite that without checking if an hour already exists.
2017-10-27T00:19:59Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValueNegative (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValuePositive (dateutil.test.test_relativedelta.RelativeDeltaT...
[ "test_validate_hour (dateutil.test.test_parser.ParserTest)" ]
Python
[]
[]
dateutil/dateutil
483
dateutil__dateutil-483
[ "360" ]
e2f67a57776825bb63894590dbd76ed018fe3036
diff --git a/dateutil/parser.py b/dateutil/parser.py --- a/dateutil/parser.py +++ b/dateutil/parser.py @@ -398,6 +398,20 @@ def has_month(self): def has_day(self): return self.dstridx is not None + def could_be_day(self, value): + if self.has_day: + return False + elif not se...
diff --git a/dateutil/test/test_internals.py b/dateutil/test/test_internals.py new file mode 100644 --- /dev/null +++ b/dateutil/test/test_internals.py @@ -0,0 +1,41 @@ +# -*- coding: utf-8 -*- +""" +Tests for implementation details, not necessarily part of the user-facing +API. + +The motivating case for these tests i...
Parser fails to parse 'DDmonYYYY' ```python >>> dateutil.parser.parse('13NOV2017', fuzzy=True) datetime.datetime(2017, 4, 13, 0, 0) # --- today's date >>> dateutil.parser.parse('13NOV2017', fuzzy=True, dayfirst=True) datetime.datetime(2017, 4, 13, 0, 0) # --- today's date ``` Without fuzzy, it raises an error...
@asishm With `fuzzy` it is basically ignoring `NOV` (though, interestingly, `NOV` is not showing up as a token). I think #326 is related. `13 NOV 2017` works, if you have any control over the format of the string to parse. I encountered this issue today also. It would be more manageable if the returned value doesn't...
2017-10-27T00:35:30Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValueNegative (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValuePositive (dateutil.test.test_relativedelta.RelativeDeltaT...
[ "test_dBY (dateutil.test.test_parser.ParserTest)", "test_could_be_day (dateutil.test.test_internals.TestYMD)" ]
Python
[]
[]
dateutil/dateutil
494
dateutil__dateutil-494
[ "406" ]
8d93169902a74ddaead794efb0ce278cee193047
diff --git a/dateutil/__init__.py b/dateutil/__init__.py --- a/dateutil/__init__.py +++ b/dateutil/__init__.py @@ -1,2 +1,5 @@ # -*- coding: utf-8 -*- from ._version import VERSION as __version__ + +__all__ = ['easter', 'parser', 'relativedelta', 'rrule', 'tz', + 'utils', 'zoneinfo']
diff --git a/dateutil/test/test_import_star.py b/dateutil/test/test_import_star.py new file mode 100644 --- /dev/null +++ b/dateutil/test/test_import_star.py @@ -0,0 +1,33 @@ +"""Test for the "import *" functionality. + +As imort * can be only done at module level, it has been added in a separate file +""" +import unit...
__all__ not defined on root package Hi, I don't know if this is a problem or intentionally planed, but because of namespace conflicts, we typically import the base package and not deep into it. For example: ``` import dateutil dateutil.parser.parse('Fri Jun 30 12:00:56 EDT 2017') ``` However this appears to fa...
@tebriel Yes, this is almost certainly by design. I don't think adding `__all__` would be sufficient to allow access to the submodules from `dateutil`, though, I think they would have to be actively imported in the `__init__.py`. The problem with doing this, though, is that as far as I know, if I actively import all th...
2017-11-05T10:11:19Z
2.6
[ "test15thISOYearWeek (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteAddition (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValueNegative (dateutil.test.test_relativedelta.RelativeDeltaTest)", "testAbsoluteValuePositive (dateutil.test.test_relativedelta.RelativeDeltaT...
[ "testImportedModules (dateutil.test.test_import_star.ImportStarTest)" ]
Python
[]
[]
dateutil/dateutil
514
dateutil__dateutil-514
[ "417" ]
36c82a47ed6a65bc723db27a30cd538f983e12a4
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -55,13 +55,18 @@ class _timelex(object): _split_decimal = re.compile("([.,])") def __init__(self, instream): - if isinstance(instream, binary_type): - i...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -102,6 +102,14 @@ def testParseStr(self): self.assertEqual(parse(self.str_str), parse(self.uni_str)) + def testParseBytes(self): + ...
dateutil.parse.parse() rejects bytearray as input ``` >>> import dateutil.parser >>> dateutil.parser.parse(b'17 Jan 2017') datetime.datetime(2017, 1, 17, 0, 0) >>> dateutil.parser.parse(bytearray(b'17 Jan 2017')) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.5/...
A one line change to `datetime.parser._timelex.__init__()` would fix this: ``` if isinstance(instream, (binary_type, bytearray)): ``` instead of ``` if isinstance(instream, binary_type): ``` However, letting duck typing work would be even better: ``` if not hasattr(instream, 'read'): if h...
2017-11-12T14:55:08Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_parser.py::ParserTest::testParseBytearray" ]
Python
[]
[]
dateutil/dateutil
517
dateutil__dateutil-517
[ "318" ]
a546d90262b3a9fcc422e69da56ece7044aa6ba4
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -628,8 +628,18 @@ def parse(self, timestr, default=None, tzinfos and res.tzname in tzinfos): tzinfo = self._build_tzinfo(tzinfos, res.tzname, re...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -4,21 +4,28 @@ import itertools from datetime import datetime, timedelta import unittest -import pytest +import sys +from dateutil import tz from dateutil.tz import tzo...
RFC822 timestamp using GMT is parsed into BST if local time is UK time The following code snipped prints `True` unless the machine is using UK time. ```python from datetime import datetime from dateutil.parser import parse from dateutil.tz import tzutc d1 = datetime(2002, 10, 2, 13, 0, tzinfo=tzutc()) d2 = ...
This is a tricky situation, because the API is pretty clear about the fact that it's going to check your local time zones for valid zone names to parse. The real issue is that this is really fuzzy and context-dependent behavior. I'd love to deprecate it at some point in the future and make it a default-off option. Tha...
2017-11-12T17:58:09Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_parser.py::test_tzlocal_in_gmt", "dateutil/test/test_parser.py::test_tzlocal_parse_fold", "dateutil/test/test_parser.py::test_parse_tzinfos_fold" ]
Python
[]
[]
dateutil/dateutil
553
dateutil__dateutil-553
[ "411" ]
f00c96c2d7bfb86e6f1802baadd1b93a41931089
diff --git a/dateutil/relativedelta.py b/dateutil/relativedelta.py --- a/dateutil/relativedelta.py +++ b/dateutil/relativedelta.py @@ -34,7 +34,7 @@ class relativedelta(object): year, month, day, hour, minute, second, microsecond: Absolute information (argument is singular); adding or subtractin...
diff --git a/dateutil/test/test_relativedelta.py b/dateutil/test/test_relativedelta.py --- a/dateutil/test/test_relativedelta.py +++ b/dateutil/test/test_relativedelta.py @@ -203,6 +203,31 @@ def testAdditionUnsupportedType(self): # For unsupported types that define their own comparators, etc. self.as...
Creating a relativedelta instance with floating point value in integer quantity for months or years I ran into an issue when creating a `relativedelta` instance with a floating point argument for `months` or `years` (albeit containing an integer quantity) : ```python >>> import datetime >>> from dateutil.relatived...
@arouanet Ah, good catch. I guess the check is more strictly enforced in `__radd__`. We should modify the constructor to coerce floats to ints if it can be done losslessly.
2017-12-06T17:45:56Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_relativedelta.py::RelativeDeltaTest::testAdditionFloatValue" ]
Python
[]
[]
dateutil/dateutil
573
dateutil__dateutil-573
[ "546" ]
324d6d5a0dd962cf4d81776c31328c40f1d6087e
diff --git a/dateutil/parser/isoparser.py b/dateutil/parser/isoparser.py --- a/dateutil/parser/isoparser.py +++ b/dateutil/parser/isoparser.py @@ -206,7 +206,10 @@ def _parse_isodate_common(self, dt_str): pos += 2 if pos >= len_str: - return components, pos + if has_sep: + ...
diff --git a/dateutil/test/test_isoparser.py b/dateutil/test/test_isoparser.py --- a/dateutil/test/test_isoparser.py +++ b/dateutil/test/test_isoparser.py @@ -54,9 +54,8 @@ def test_year_only(dt): DATES += [datetime(2000, 2, 1), datetime(2017, 4, 1)] @pytest.mark.parametrize('dt', tuple(DATES)) [email protected]...
Drop support for YYYYMM in isoparser According to Wikipedia [YYYYMM](https://en.wikipedia.org/wiki/ISO_8601#Calendar_dates) is explicitly *not* supported in ISO-8601, so we should drop support for it. Hopefully this does not add undue complication into the algorithm. See #489 for initial isoparse implementation.
@pganssle has this issue been assigned or can I take a crack at it? @kirit93 During the sprint, @yoney said he was going to take a look at it this weekend, but I talked to him and he said you can go for it. Just mention it here if you end up not doing it.
2017-12-08T15:35:29Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_isoparser.py::test_iso_raises[201204-ValueError]" ]
Python
[]
[]
dateutil/dateutil
581
dateutil__dateutil-581
[ "259" ]
08b7290f23ac6ee50d3ba3e3195525b016dc8873
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -44,6 +44,8 @@ from decimal import Decimal +import re + from .. import relativedelta from .. import tz @@ -620,7 +622,7 @@ def parse(self, timestr, default=None, class ...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -22,7 +22,7 @@ import pytest # dateutil imports -from dateutil.relativedelta import relativedelta, SU +from dateutil.relativedelta import relativedelta, SU, TH from dateutil.parser impo...
tzstr not properly detecting invalid strings I noticed that [this test](https://github.com/dateutil/dateutil/blob/master/dateutil/test/test_tz.py#L903) is not actually parsing the time zone string correctly because that string format is not supported: ``` python >>> from dateutil import tz >>> tz.tzstr("EST5EDT") == t...
Putting this off for the first bugfix release.
2017-12-10T15:33:57Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_tz.py::TZStrTest::test_internal_timedeltas", "dateutil/test/test_tz.py::test_valid_default_format[EST5EDT,5,4,0,7200,11,3,0,7200-expected0]", "dateutil/test/test_tz.py::test_valid_default_format[EST5EDT,5,-4,0,7200,11,3,0,7200-expected1]", "dateutil/test/test_tz.py::test_valid_default_form...
Python
[]
[]
dateutil/dateutil
606
dateutil__dateutil-606
[ "595" ]
ea06a738df2acff1714d47beb9ca2a13fe6be101
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -44,7 +44,7 @@ from decimal import Decimal -import re +from warnings import warn from .. import relativedelta from .. import tz @@ -1419,6 +1419,14 @@ def parse(self, tzstr)...
diff --git a/dateutil/test/test_internals.py b/dateutil/test/test_internals.py --- a/dateutil/test/test_internals.py +++ b/dateutil/test/test_internals.py @@ -13,6 +13,7 @@ import pytest from dateutil.parser._parser import _ymd +from dateutil import tz IS_PY32 = sys.version_info[0:2] == (3, 2) @@ -80,3 +81,15 ...
Deprecate idiosyncratic tzstr format Per [this question](https://stackoverflow.com/q/47874633/467366) on SO, unless we can find some sort of standard that matches up with `# GMT0BST,3,0,30,3600,10,0,26,7200[,3600]`, I think we can go ahead and deprecate it as a supported `tzstr` format (just in time now that @pablogsal...
2018-01-03T17:08:41Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_internals.py::test_tzstr_internal_timedeltas", "dateutil/test/test_tz.py::test_valid_dateutil_format[EST5EDT,5,4,0,7200,11,3,0,7200-expected0]", "dateutil/test/test_tz.py::test_valid_dateutil_format[EST5EDT,5,-4,0,7200,11,3,0,7200-expected1]", "dateutil/test/test_tz.py::test_valid_dateutil...
Python
[]
[]
dateutil/dateutil
672
dateutil__dateutil-672
[ "635" ]
e6644a44f9716f0b72468ddf54fa9e4567524b53
diff --git a/dateutil/tz/_factories.py b/dateutil/tz/_factories.py --- a/dateutil/tz/_factories.py +++ b/dateutil/tz/_factories.py @@ -1,5 +1,5 @@ from datetime import timedelta - +import weakref class _TzSingleton(type): def __init__(cls, *args, **kwargs): @@ -19,7 +19,7 @@ def instance(cls, *args, **kwargs):...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -14,6 +14,8 @@ import sys import base64 import copy +import gc +import weakref from functools import partial @@ -731,6 +733,20 @@ def testTzOffsetSingletonDifferent(self): ...
Switch timezone singletons and caches with weak references Right now `tzoffset`, `tzstr` and `tz.gettz` each retain strong references to every unique time zone ever constructed by that method. I think in the end this will be a net savings in memory in *most* use cases since it prevents duplication of time zones, but it...
I'd be interested in working on this.
2018-04-13T00:39:35Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_tz.py::test_tzoffset_weakref", "dateutil/test/test_tz.py::test_gettz_weakref", "dateutil/test/test_tz.py::test_tzstr_weakref" ]
Python
[]
[]
dateutil/dateutil
679
dateutil__dateutil-679
[ "662" ]
7783055c6bd670a1ccac9b1e406a4c8fc4d7b25d
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -1202,10 +1202,15 @@ def _assign_tzname(self, dt, tzname): def _to_decimal(self, val): try: - return Decimal(val) + decimal_value = Decimal(val)...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -1093,9 +1093,9 @@ def test_rounding_floatlike_strings(dtstr, dt): assert parse(dtstr, default=datetime(2003, 9, 25)) == dt -def test_decimal_error(): - # GH 632 ...
InvalidOperation: `[<class 'decimal.InvalidOperation'>]` while parsing `Nan` Hi there! We discovered a problem with the latest release (2.7.2): ``` import dateutil dateutil.parser.parse('Nan') ``` Is raising `InvalidOperation` with a traceback: <details> ```ipython Traceback (most recent call last) <i...
This is very similar to the test case in #491. Most of that PR is unnecessary for fixing this, but you could extract the relevant function and test case pretty easily. Hm.. this is similar to #636. I'll have to think about the best way to solve this. I suppose we could switch this over to just catching all `InvalidOpe...
2018-04-14T17:08:28Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_parser.py::test_decimal_error[Nan]" ]
Python
[]
[]
dateutil/dateutil
681
dateutil__dateutil-681
[ "661" ]
194a8e83f0f6544b12e1858da767fac833da7666
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -1125,16 +1125,14 @@ def _build_tzinfo(self, tzinfos, tzname, tzoffset): tzdata = tzinfos(tzname, tzoffset) else: tzdata = tzinfos.get(tzname) - - ...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -170,7 +170,6 @@ def testDateCommandFormatWithLong(self): tzinfos={"BRST": long(-10800)}), datetime(2003, 9,...
Allow tzinfos to return None Currently, if you the result of a `tzinfos` call *explicitly* returns `None`, that will throw an error: ```python >>> from dateutil.parser import parse >>> parse('2017-02-03 12:40 MGX', tzinfos={'MGX': None}) ... ValueError: Offset must be tzinfo subclass, tz string, or int offset. ...
@pganssle Having a look at this. In the second case shouldn't this still be the correct behaviour? @ParseThis Yes, the second case is the correct behavior. I was just demonstrating that the behavior is only triggered when the `tzinfos` returns None, not whenever `parse` finds a timezone string and assigns `None`.
2018-04-14T21:51:33Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_parser.py::ParserTest::testTzinfoDictionaryCouldReturnNone", "dateutil/test/test_parser.py::ParserTest::testTzinfosCallableCouldReturnNone" ]
Python
[]
[]
dateutil/dateutil
693
dateutil__dateutil-693
[ "652" ]
04a90b5b73335e95d1c71fe87a77fed3463c77ea
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -427,7 +427,10 @@ def __init__(self, freq, dtstart=None, super(rrule, self).__init__(cache) global easter if not dtstart: - dtstart = datetime.datetime.now().replace(microsecond=0)...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -14,7 +14,12 @@ MO, TU, WE, TH, FR, SA, SU ) +from freezegun import freeze_time +import pytest + + [email protected] class RRuleTest(WarningTestMixin, unittest.TestC...
Default DTSTART in rrule lacks a timezone Since 2.7, the following code fails in our project: ```python rule = rrule.rrulestr("RRULE:FREQ=WEEKLY;WKST=MO;BYDAY=MO,TU;UNTIL=20180331T200000Z") ``` This is the error we see: ```python-traceback ValueError: RRULE UNTIL values must be specified in UTC when DTSTART...
Hm. It is unclear to me whether the RFC requires DTSTART or not. I think it *is* required for some iCalendar components (e.g. VEVENT), but that the RRULE itself can take DTSTART from its parent element. If we're allowing the generation of arbitrary RRULE elements without `dtstart` and filling in the current time as ...
2018-04-18T19:48:01Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_rrule.py::test_generated_aware_dtstart" ]
Python
[]
[]
dateutil/dateutil
700
dateutil__dateutil-700
[ "687" ]
65b59f0e864a7bd647b5bb8dbee156b06ef9f6c9
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -458,10 +458,37 @@ def append(self, val, label=None): raise ValueError('Year is already set') self.ystridx = len(self) - 1 + def _resolve_from_stri...
diff --git a/dateutil/test/test_parser.py b/dateutil/test/test_parser.py --- a/dateutil/test/test_parser.py +++ b/dateutil/test/test_parser.py @@ -1106,3 +1106,9 @@ def test_decimal_error(value): # constructed with an invalid value with pytest.raises(ValueError): parse(value) + + +def test_BYd_corner...
Parser error with unambiguous date in year 31 I started converting [this test](https://github.com/dateutil/dateutil/blob/master/dateutil/test/test_parser.py#L33) over to a hypothesis-based property test and found the following failure: ```python from dateutil.parser import parse from datetime import datetime dt...
Could this be related to: https://bugs.python.org/issue13305 ? @chimeno I don't think so: ```python >>> parse('December.0031.30') datetime.datetime(30, 12, 31, 0, 0) ``` Though likely that will cause problems with the implementation of the hypothesis tests as I wrote them. That said, now that I think about ...
2018-04-21T22:55:59Z
2.7
[ "dateutil/test/test_easter.py::EasterTest::testEasterBadMethod", "dateutil/test/test_easter.py::EasterTest::testEasterJulian", "dateutil/test/test_easter.py::EasterTest::testEasterOrthodox", "dateutil/test/test_easter.py::EasterTest::testEasterWestern", "dateutil/test/test_import_star.py::ImportStarTest::te...
[ "dateutil/test/test_parser.py::test_BYd_corner_case" ]
Python
[]
[]
dateutil/dateutil
751
dateutil__dateutil-751
[ "658" ]
86e33512c41a04b989b14966a722608035a87b51
diff --git a/dateutil/parser/isoparser.py b/dateutil/parser/isoparser.py --- a/dateutil/parser/isoparser.py +++ b/dateutil/parser/isoparser.py @@ -139,6 +139,10 @@ def isoparse(self, dt_str): else: raise ValueError('String contains unknown ISO components') + if len(components) > 3...
diff --git a/dateutil/test/test_isoparser.py b/dateutil/test/test_isoparser.py --- a/dateutil/test/test_isoparser.py +++ b/dateutil/test/test_isoparser.py @@ -140,15 +140,15 @@ def test_full_tzoffsets(tzoffset): @pytest.mark.parametrize('dt_str', [ '2014-04-11T00', - '2014-04-11T24', + '2014-04-10T24', ...
Isoparser misinterprets T24:00 When I originally wrote the ISO 8601 parser, I misinterpreted the standard. From [Wikipedia](https://en.wikipedia.org/wiki/ISO_8601#Times): > Midnight is a special case and may be referred to as either "00:00" or "24:00". The notation "00:00" is used at the beginning of a calendar day ...
May I try this one?
2018-06-08T10:48:21Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_isoparser.py::test_datetime_midnight[2014-04-10T24]", "dateutil/test/test_isoparser.py::test_datetime_midnight[2014-04-10T24:00]", "dateutil/test/test_isoparser.py::test_datetime_midnight[2014-04-10T24:00:00]", "dateutil/test/test_isoparser.py::test_datetime_midnight[2014-04-10T24:00:00.00...
Python
[]
[]
dateutil/dateutil
761
dateutil__dateutil-761
[ "691" ]
770b8f05e0f4de22a2cae4c6ac81c8df725369e7
diff --git a/dateutil/tz/_factories.py b/dateutil/tz/_factories.py --- a/dateutil/tz/_factories.py +++ b/dateutil/tz/_factories.py @@ -1,5 +1,7 @@ from datetime import timedelta import weakref +from collections import OrderedDict + class _TzSingleton(type): def __init__(cls, *args, **kwargs): @@ -11,6 +13,7 @...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -746,7 +746,15 @@ def test_tzoffset_weakref(): del UTC1 gc.collect() - assert UTC_ref() is None + assert UTC_ref() is not None # Should be in the strong cache + asser...
Add LRU cache to gettz and factories Now that #635 is resolved, `gettz`, `tzoffset` and `tzstr` satisfies the property that two `tzinfo` objects (`tz1` and `tz2`) constructed with identical arguments will always be the same object (`tz1` is `tz2`), but the cached objects expire whenever no instances of a given timezone...
I'd like to work on this.
2018-06-08T16:17:43Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_tz.py::test_tzoffset_weakref", "dateutil/test/test_tz.py::test_gettz_set_cache_size", "dateutil/test/test_tz.py::test_gettz_weakref", "dateutil/test/test_tz.py::test_tzstr_weakref" ]
Python
[]
[]
dateutil/dateutil
763
dateutil__dateutil-763
[ "582" ]
af72d0dfb63617a2623b333069ece0300a49d1b7
diff --git a/dateutil/tz/tz.py b/dateutil/tz/tz.py --- a/dateutil/tz/tz.py +++ b/dateutil/tz/tz.py @@ -29,6 +29,9 @@ except ImportError: tzwin = tzwinlocal = None +# For warning about rounding tzinfo +from warnings import warn + ZERO = datetime.timedelta(0) EPOCH = datetime.datetime.utcfromtimestamp(0) EPOCH...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -156,6 +156,8 @@ EST_TUPLE = ('EST', timedelta(hours=-5), timedelta(hours=0)) EDT_TUPLE = ('EDT', timedelta(hours=-4), timedelta(hours=1)) +SUPPORTS_SUB_MINUTE_OFFSETS = sys.version_info...
tzfile does not support non-integer minute offsets Discovered this bug in #565 in the test for [Monrovia](https://www.timeanddate.com/time/zone/liberia/monrovia). I'm guessing that the problem is that before Python 3.6-ish, `datetime` didn't support this at all: ```python >>> from dateutil import tz >>> from datet...
One thing to note is that the Olson database does not support sub-second offsets, per the [theory file](http://web.cs.ucla.edu/~eggert/tz/theory.html). I'm looking into this -- going with method 2 as suggested in original comment
2018-06-08T16:37:41Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_tz.py::test_tzfile_sub_minute_offset", "dateutil/test/test_tz.py::test_resolve_imaginary[tzi4-dt4-dt_exp4]" ]
Python
[]
[]
dateutil/dateutil
787
dateutil__dateutil-787
[ "786", "786" ]
48f3860b83373d1603c3d4c542562f09925303a9
diff --git a/dateutil/parser/isoparser.py b/dateutil/parser/isoparser.py --- a/dateutil/parser/isoparser.py +++ b/dateutil/parser/isoparser.py @@ -88,7 +88,7 @@ def isoparse(self, dt_str): - ``hh`` - ``hh:mm`` or ``hhmm`` - ``hh:mm:ss`` or ``hhmmss`` - - ``hh:mm:ss.sss`` or ``hh:mm:ss....
diff --git a/dateutil/test/test_isoparser.py b/dateutil/test/test_isoparser.py --- a/dateutil/test/test_isoparser.py +++ b/dateutil/test/test_isoparser.py @@ -130,6 +130,15 @@ def test_ymd_hms_micro(dt, date_fmt, time_fmt, tzoffset, precision): _isoparse_date_and_time(dt, date_fmt, time_fmt, tzoffset, precision)...
Accept more than 6 digits for fractional seconds in isoparse Currently, `isoparse` raises an exception if there are more than 6 digits in the fractional second. ``` >>> dateutil.parser.isoparse("2006-01-02T15:04:05.9999999-07:00") Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/...
This would be nice, though I'm a bit wary of the truncating idea. Until it gets implemented here (PRs welcome BTW), you might want to just use `pandas.Timestamp` since it retains nanoseconds. I am willing to take a shot at implementing it. I propose that `isoparse` truncate by default, with an optional argument to rai...
2018-07-03T19:22:21Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_isoparser.py::test_extra_subsecond_digits[2018-07-03T14:07:00.123456000001]", "dateutil/test/test_isoparser.py::test_extra_subsecond_digits[2018-07-03T14:07:00.123456999999]" ]
Python
[]
[]
dateutil/dateutil
801
dateutil__dateutil-801
[ "800" ]
510359df834bd304ae7745ee7f22a843486bc1ce
diff --git a/dateutil/tz/tz.py b/dateutil/tz/tz.py --- a/dateutil/tz/tz.py +++ b/dateutil/tz/tz.py @@ -1539,10 +1539,15 @@ def __call__(self, name=None): if rv is None: rv = self.nocache(name=name) - if not (name is None or isinstance(rv, tzlocal_classes)): + ...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -8,6 +8,7 @@ from datetime import datetime, timedelta from datetime import time as dt_time from datetime import tzinfo +from six import PY2 from six import BytesIO, StringIO import unit...
tz.gettz broken when time zone not found When we switched over to using weak references for caching (see #635), we didn't take into account the fact that occasionally `tz.gettz` returns `None` (when no `tzinfo` object is found). Since you cannot have a weak reference to `None`, when we try to populate the weak cache, i...
2018-08-14T14:21:13Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_tz.py::test_gettz_badzone[Fake.Region/Abcdefghijklmnop]", "dateutil/test/test_tz.py::test_gettz_badzone_unicode" ]
Python
[]
[]
dateutil/dateutil
810
dateutil__dateutil-810
[ "812" ]
a5d860d370a8486fdbcd338c244dc5f583beba5f
diff --git a/dateutil/tz/tz.py b/dateutil/tz/tz.py --- a/dateutil/tz/tz.py +++ b/dateutil/tz/tz.py @@ -657,37 +657,44 @@ def _read_tzfile(self, fileobj): # isgmt are off, so it should be in wall time. OTOH, it's # always in gmt time. Let me know if you have comments # about this. - las...
diff --git a/dateutil/test/test_tz.py b/dateutil/test/test_tz.py --- a/dateutil/test/test_tz.py +++ b/dateutil/test/test_tz.py @@ -1950,11 +1950,6 @@ def testFilestreamWithNameRepr(self): tzc = tz.tzfile(fileobj) self.assertEqual(repr(tzc), 'tzfile(' + repr('foo') + ')') - - - - - def testLeapC...
utcoffset/tzname incorrect immediately before Samoan offset change First reported by @MartinThoma in [this SO question](https://stackoverflow.com/questions/52136980), it seems that there is a bug in the way `tzfile` handles the local transition times during a base offset change: ```python from datetime import datet...
2018-09-02T14:10:17Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_tz.py::test_samoa_transition" ]
Python
[]
[]
dateutil/dateutil
822
dateutil__dateutil-822
[ "820" ]
479e340ce9f32581aa6eeb54e97c4e7866d31611
diff --git a/dateutil/parser/_parser.py b/dateutil/parser/_parser.py --- a/dateutil/parser/_parser.py +++ b/dateutil/parser/_parser.py @@ -291,7 +291,7 @@ class parserinfo(object): ("s", "second", "seconds")] AMPM = [("am", "a"), ("pm", "p")] - UTCZONE = ["UTC", "GMT", "Z"] + UTCZONE...
diff --git a/dateutil/test/test_isoparser.py b/dateutil/test/test_isoparser.py --- a/dateutil/test/test_isoparser.py +++ b/dateutil/test/test_isoparser.py @@ -228,6 +228,8 @@ def test_iso_ordinal(isoord, dt_expected): (b'20140204T123015.224', datetime(2014, 2, 4, 12, 30, 15, 224000)), (b'2014-02-04T12:30:15.2...
Parser only partially accounts for case-insensitive nature of ISO8601 datestamps ```bash $ python -c "from dateutil.parser import parse > print parse('1970-01-01T00:00:00Z') > print parse('1970-01-01t00:00:00Z') > print parse('1970-01-01t00:00:00') > print parse('1970-01-01t00:00:00z')" 1970-01-01 00:00:00+00:00 ...
If true that the ISO 8601 format allows for `z`, then we should at the very least update `dateutil.parser.isoparse`. I don't know if we need to or want to add support for this in `dateutil.parser.parse`. The obvious way to do so would be to change `parserinfo.UTCZONE` to include `'z'`, but I suspect a lower-case z i...
2018-10-02T13:52:44Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_isoparser.py::test_bytes[2014-02-04T12:30:15.224z-dt9]", "dateutil/test/test_parser.py::ParserTest::testRandomFormat18" ]
Python
[]
[]
dateutil/dateutil
859
dateutil__dateutil-859
[ "410" ]
b9aa7f0bf92961bfd91e36bbaff2d4c8c5abaf51
diff --git a/dateutil/rrule.py b/dateutil/rrule.py --- a/dateutil/rrule.py +++ b/dateutil/rrule.py @@ -435,7 +435,7 @@ def __init__(self, freq, dtstart=None, if not dtstart: if until and until.tzinfo: dtstart = datetime.datetime.now(tz=until.tzinfo).replace(microsecond=0) - ...
diff --git a/dateutil/test/test_rrule.py b/dateutil/test/test_rrule.py --- a/dateutil/test/test_rrule.py +++ b/dateutil/test/test_rrule.py @@ -2853,6 +2853,74 @@ def testStrSetExDate(self): datetime(1997, 9, 9, 9, 0), datetime(1997, 9, 16, 9, 0)]) + def testStr...
Add support of VALUE=DATE and TZID when parsing EXDATE rule According to the RFC 5545, the EXDATE grammar is: exdate = "EXDATE" exdtparam ":" exdtval *("," exdtval) CRLF exdtparam = *( ; ; The following are OPTIONAL, ; but MUST NOT occu...
2019-01-31T23:41:08Z
2.7
[ "dateutil/test/test_easter.py::test_easter_western[easter_date0]", "dateutil/test/test_easter.py::test_easter_western[easter_date1]", "dateutil/test/test_easter.py::test_easter_western[easter_date2]", "dateutil/test/test_easter.py::test_easter_western[easter_date3]", "dateutil/test/test_easter.py::test_east...
[ "dateutil/test/test_rrule.py::RRuleTest::testStrMultipleDTStartComma", "dateutil/test/test_rrule.py::RRuleTest::testStrSetExDateValueDate", "dateutil/test/test_rrule.py::RRuleTest::testStrSetExDateValueDateTimeWithTZID", "dateutil/test/test_rrule.py::RRuleTest::testStrSetExDateWithTZID" ]
Python
[]
[]
babel/babel
15,096
babel__babel-15096
[ "15095" ]
df147adb4ea4a13a952643566c70e509901b9a20
diff --git a/packages/babel-parser/src/plugins/typescript/index.ts b/packages/babel-parser/src/plugins/typescript/index.ts --- a/packages/babel-parser/src/plugins/typescript/index.ts +++ b/packages/babel-parser/src/plugins/typescript/index.ts @@ -3540,6 +3540,7 @@ export default (superClass: ClassWithMixin<typeof Parse...
diff --git a/packages/babel-parser/test/fixtures/typescript/cast/satisfies/input.ts b/packages/babel-parser/test/fixtures/typescript/cast/satisfies/input.ts --- a/packages/babel-parser/test/fixtures/typescript/cast/satisfies/input.ts +++ b/packages/babel-parser/test/fixtures/typescript/cast/satisfies/input.ts @@ -1,2 +...
[Bug]: cannot parse `satisfies` op that is in in left side of assignment ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code - [Babel REPL Link](https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&...
2022-10-30T05:37:23Z
7.20
[ "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=DYUwLgBAhhC8EDsCuxgG4BQAKGEDOUYAlngGZEh7QICeAlHIiuhkA&debug=false&forceAllTransforms=true&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=false&presets=...
babel/babel
15,102
babel__babel-15102
[ "15099" ]
292e5d6b671633d8d859b0269baf4b7c0dfc793a
diff --git a/packages/babel-parser/src/util/scopeflags.ts b/packages/babel-parser/src/util/scopeflags.ts --- a/packages/babel-parser/src/util/scopeflags.ts +++ b/packages/babel-parser/src/util/scopeflags.ts @@ -10,7 +10,7 @@ export const SCOPE_OTHER = 0b000000000, SCOPE_CLASS = 0b001000000, ...
diff --git a/packages/babel-parser/test/fixtures/es2022/class-static-block/re-declare-var/input.js b/packages/babel-parser/test/fixtures/es2022/class-static-block/re-declare-var/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/es2022/class-static-block/re-declare-var/input.js @@ -0,...
[Bug]: (Babel transpilation fail) Duplicated name in class static block should be allowed ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js class x { static { var x = 42; } } ``` ### Configuration file name _No response_ ### C...
Hey @p51lee! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-10-31T09:00:20Z
7.20
[ "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=MYGwhgzhAEAe0G9oQC5hQS2I6A3MATnNALzQAsATANzQC-9QA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=script&lineWrap=true&presets=env%...
babel/babel
15,103
babel__babel-15103
[ "15101" ]
292e5d6b671633d8d859b0269baf4b7c0dfc793a
diff --git a/packages/babel-plugin-proposal-async-generator-functions/src/index.ts b/packages/babel-plugin-proposal-async-generator-functions/src/index.ts --- a/packages/babel-plugin-proposal-async-generator-functions/src/index.ts +++ b/packages/babel-plugin-proposal-async-generator-functions/src/index.ts @@ -54,11 +54...
diff --git a/packages/babel-plugin-proposal-async-generator-functions/test/fixtures/for-await/async-arrow/output.js b/packages/babel-plugin-proposal-async-generator-functions/test/fixtures/for-await/async-arrow/output.js --- a/packages/babel-plugin-proposal-async-generator-functions/test/fixtures/for-await/async-arrow/...
[Bug]: (Babel transpilation fail) For await shadowing ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js ( async () => { for await ( let x of [ ] ) { let x; } } ) ; ``` ### Configuration file name _No response_ ### Configur...
Hey @p51lee! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-10-31T09:31:53Z
7.20
[]
[ "packages/babel-plugin-proposal-async-generator-functions/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=BQAghgzgngdgxiYBKEBeAfCA3gKBCAMwHsAncAdzAEsAXREAGwFM6APEIgkAbRAF0QKLIxYhWAbhABfHFMEhxQA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&source...
babel/babel
15,104
babel__babel-15104
[ "15100" ]
292e5d6b671633d8d859b0269baf4b7c0dfc793a
diff --git a/packages/babel-plugin-transform-destructuring/src/util.ts b/packages/babel-plugin-transform-destructuring/src/util.ts --- a/packages/babel-plugin-transform-destructuring/src/util.ts +++ b/packages/babel-plugin-transform-destructuring/src/util.ts @@ -463,8 +463,6 @@ export class DestructuringTransformer { ...
diff --git a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/destructuring-empty-in-for/input.js b/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/destructuring-empty-in-for/input.js --- a/packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/destr...
[Bug]: (Babel transpilation fail) Empty object destructuring in for-lexical declaration should be allowed ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js for ( let { } = 0 ; 0 ; ) ; ``` ### Configuration file name _No respons...
Hey @p51lee! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-10-31T10:54:47Z
7.20
[]
[ "packages/babel-plugin-transform-destructuring/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=GYewTgBAFBA2CmAXCBvCBfCBeCAGCA3HoRAJSFA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=script&lineWrap=true&presets=env%2Creact%2C...
babel/babel
15,106
babel__babel-15106
[ "15098" ]
283720d2523603426018f1f44c3c24df6c718efb
diff --git a/packages/babel-traverse/src/path/introspection.ts b/packages/babel-traverse/src/path/introspection.ts --- a/packages/babel-traverse/src/path/introspection.ts +++ b/packages/babel-traverse/src/path/introspection.ts @@ -634,7 +634,10 @@ export function isConstantExpression(this: NodePath): boolean { } ...
diff --git a/packages/babel-plugin-proposal-class-properties/test/fixtures/regression/15098/exec.js b/packages/babel-plugin-proposal-class-properties/test/fixtures/regression/15098/exec.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-proposal-class-properties/test/fixtures/regression/15098/exec.js @@ ...
[Bug]: `in` operator in computed field ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js class x { [ 0 in 0 ] ; } ``` ### Configuration file name _No response_ ### Configuration _No response_ ### Current and expected behavi...
Hey @p51lee! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-10-31T18:41:28Z
7.20
[]
[ "packages/babel-plugin-proposal-class-properties/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=MYGwhgzhAEAe0G9oG1oAZoEsB27oF1oBuaAXyA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=script&lineWrap=true&presets=env%2Creact%2Cs...
babel/babel
15,107
babel__babel-15107
[ "15085" ]
9836e24da40bea7adbae9b375d203889ef2d2b36
diff --git a/packages/babel-parser/src/plugins/estree.ts b/packages/babel-parser/src/plugins/estree.ts --- a/packages/babel-parser/src/plugins/estree.ts +++ b/packages/babel-parser/src/plugins/estree.ts @@ -455,6 +455,7 @@ export default (superClass: typeof Parser) => unfinished: Undone<N.AnyExport>, deco...
diff --git a/eslint/babel-eslint-tests/test/integration/eslint/verify.js b/eslint/babel-eslint-tests/test/integration/eslint/verify.js --- a/eslint/babel-eslint-tests/test/integration/eslint/verify.js +++ b/eslint/babel-eslint-tests/test/integration/eslint/verify.js @@ -2,6 +2,32 @@ import verifyAndAssertMessages from ...
[Bug]: Some issue in @babel/parser version 7.20.0 ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code After we moved from version 7.19.6 to 7.20.0 we got those new errors: SyntaxError: A decorated export must export a class declaration. at instantiate /node_modu...
Hey @doronaz! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, ...
2022-10-31T21:14:16Z
7.20
[ "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/attachComm...
[ "packages/babel-parser/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,113
babel__babel-15113
[ "15112" ]
53185ea275b0a278ac4aafe5841f2a332cabff31
diff --git a/packages/babel-plugin-proposal-decorators/src/transformer-2022-03.ts b/packages/babel-plugin-proposal-decorators/src/transformer-2022-03.ts --- a/packages/babel-plugin-proposal-decorators/src/transformer-2022-03.ts +++ b/packages/babel-plugin-proposal-decorators/src/transformer-2022-03.ts @@ -937,7 +937,12...
diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-classes--to-es2015/expressions-static-blocks/input.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2021-12-classes--to-es2015/expressions-static-blocks/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-propos...
[Bug]: Babel throws when a decorated class expression contains a static block ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js const dec = () => {}; 0, @dec class { static {} } ``` [REPL](https://babe...
Hey @JLHwung! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, ...
2022-11-01T19:19:29Z
7.20
[]
[ "packages/babel-plugin-proposal-decorators/test/index.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=defaults&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=MYewdgzgLgBAJgU2DAvDAFASlQPhgbwF8BuAKAAYAaGAAUWWABsBDCCAmaZqAS2SJiEgA&debug=false&forceAllTransforms=false&shippedProposals=true&circleciRepo=&evaluate=true&fileSize=false&timeTravel=false&sourceType=module&l...
babel/babel
15,118
babel__babel-15118
[ "15111" ]
53185ea275b0a278ac4aafe5841f2a332cabff31
diff --git a/packages/babel-generator/src/generators/classes.ts b/packages/babel-generator/src/generators/classes.ts --- a/packages/babel-generator/src/generators/classes.ts +++ b/packages/babel-generator/src/generators/classes.ts @@ -134,7 +134,7 @@ export function ClassAccessorProperty( // TS does not support clas...
diff --git a/packages/babel-generator/test/fixtures/decorator-auto-accessors/comments/input.js b/packages/babel-generator/test/fixtures/decorator-auto-accessors/comments/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-generator/test/fixtures/decorator-auto-accessors/comments/input.js @@ -0,0 +1,6 @@ +c...
[Bug]: Regression. Babel generates invalid code. ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ```js import { apiLogout } from "../api"; import { reportError } from "../libs/report_error"; export function logout() { return reportE...
Hey @andy128k! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions,...
2022-11-02T10:41:25Z
7.20
[ "packages/babel-generator/test/arrow-functions.js", "packages/babel-generator/test/printer.skip-bundled.js" ]
[ "packages/babel-generator/test/index.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=JYWwDg9gTgLgBAbzgQzMAMhA5hArvAXzgDMoIQ4AiAOmoHpVhKBuAKFElkTigFNOYAUShkocIqXJVadADbAARgGc6fAQH1eI6C1ateADwElcAOwDGMYBFNxZ2PDAAUASkSs4PXjFxRba6CFtKCdkJQBPCzgnOgAqABNgJT...
babel/babel
15,134
babel__babel-15134
[ "15127" ]
c171a7564be63b4250239af6a70196f0fc0a96c4
diff --git a/packages/babel-parser/src/parser/expression.ts b/packages/babel-parser/src/parser/expression.ts --- a/packages/babel-parser/src/parser/expression.ts +++ b/packages/babel-parser/src/parser/expression.ts @@ -2891,11 +2891,12 @@ export default abstract class ExpressionParser extends LValParser { const { ...
diff --git a/packages/babel-parser/test/fixtures/es2015/for-of/valid-script-await-as-lhs/input.js b/packages/babel-parser/test/fixtures/es2015/for-of/valid-script-await-as-lhs/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/es2015/for-of/valid-script-await-as-lhs/input.js @@ -0,0 +...
[Bug]: Babel crashes when using `await` as an identifier in ForInOfHead ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js for( await of [1, 2, 3] ) { console.log(await) } ``` ### Configuration file name _No response_ ### Conf...
Hey @p51lee! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-11-04T21:59:55Z
7.20
[ "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/attachComm...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[ "https://user-images.githubusercontent.com/68288688/200038280-5710d26b-d188-433c-b675-e83a27e5ef13.png" ]
[ "https://babeljs.io/repl#?browsers=since%202015&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=GYewTgFAhg7lCWAXABCYyDaBGANAJhwGYBdASmWQG9kBjEAOwGcQAbAUwDoWQBzaOJOQC-AKCA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceT...
babel/babel
15,135
babel__babel-15135
[ "15132" ]
c171a7564be63b4250239af6a70196f0fc0a96c4
diff --git a/packages/babel-generator/src/generators/methods.ts b/packages/babel-generator/src/generators/methods.ts --- a/packages/babel-generator/src/generators/methods.ts +++ b/packages/babel-generator/src/generators/methods.ts @@ -10,7 +10,6 @@ export function _params( this.token("("); this._parameters(node.p...
diff --git a/packages/babel-generator/test/fixtures/regression/inner-line-commens-func/input.js b/packages/babel-generator/test/fixtures/regression/inner-line-commens-func/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-generator/test/fixtures/regression/inner-line-commens-func/input.js @@ -0,0 +1,9 @@...
[Bug]: Unable to use pako in create-react-app 5 with latest babel v7.20.x ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code The file from pako is node_modules/pako/dist/pako.esm.mjs ``` const gen_bitlen = (s, desc) => // hello...
Hey @cmdcolin! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions,...
2022-11-05T04:39:16Z
7.20
[ "packages/babel-generator/test/arrow-functions.js", "packages/babel-generator/test/printer.skip-bundled.js" ]
[ "packages/babel-generator/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,143
babel__babel-15143
[ "15138" ]
4285d5fad81839bdcfe62906f83bef5def5c9623
diff --git a/packages/babel-generator/src/printer.ts b/packages/babel-generator/src/printer.ts --- a/packages/babel-generator/src/printer.ts +++ b/packages/babel-generator/src/printer.ts @@ -637,7 +637,10 @@ class Printer { } else { shouldPrintParens = needsParens(node, parent, this._printStack); } - ...
diff --git a/packages/babel-generator/test/fixtures/comments/inner-comments-auto-parens/input.js b/packages/babel-generator/test/fixtures/comments/inner-comments-auto-parens/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-generator/test/fixtures/comments/inner-comments-auto-parens/input.js @@ -0,0 +1,3...
[Bug]: Inner comments for anonymous functions/classes printed in leading position ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js const {parse} = require('@babel/parser'), generate = require('@babel/ge...
Hey @overlookmotel! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript quest...
2022-11-05T19:25:59Z
7.20
[ "packages/babel-generator/test/printer.skip-bundled.js", "packages/babel-generator/test/arrow-functions.js" ]
[ "packages/babel-generator/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,146
babel__babel-15146
[ "15145" ]
ce09a269d830b2cfb2b012819351924ddad7fde7
diff --git a/packages/babel-plugin-transform-parameters/src/params.ts b/packages/babel-plugin-transform-parameters/src/params.ts --- a/packages/babel-plugin-transform-parameters/src/params.ts +++ b/packages/babel-plugin-transform-parameters/src/params.ts @@ -154,7 +154,8 @@ export default function convertFunctionParams...
diff --git a/packages/babel-plugin-transform-parameters/test/fixtures/regression/15145/exec.js b/packages/babel-plugin-transform-parameters/test/fixtures/regression/15145/exec.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-parameters/test/fixtures/regression/15145/exec.js @@ -0,0 +1,10 @@ +...
[Bug]: Async generators with default parameters compile to invalid code ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ```js export async function * foo (p = 1) { yield "hello"; } for await (const x of foo()) { console.log(x); } ...
Hey @codebutler! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript question...
2022-11-05T20:54:54Z
7.20
[]
[ "packages/babel-plugin-transform-parameters/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,160
babel__babel-15160
[ "15161" ]
156b608d48900b9489bd31aff03189a6c18f9040
diff --git a/packages/babel-generator/src/generators/methods.ts b/packages/babel-generator/src/generators/methods.ts --- a/packages/babel-generator/src/generators/methods.ts +++ b/packages/babel-generator/src/generators/methods.ts @@ -11,7 +11,10 @@ export function _params( this._parameters(node.params, node); th...
diff --git a/packages/babel-generator/test/fixtures/regression/15161/input.js b/packages/babel-generator/test/fixtures/regression/15161/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-generator/test/fixtures/regression/15161/input.js @@ -0,0 +1,3 @@ +var test = (/* placeholder */) => { + /* Unused */ ...
[Bug]: With `comments: false`, babel inserts an extra newline before the `=>` of an arrow function ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code ```js var test = (/* placeholder */) => { /* Unused */ } ``` ### Configuration file name babel.config.json ...
2022-11-08T13:59:54Z
7.20
[ "packages/babel-generator/test/arrow-functions.js", "packages/babel-generator/test/printer.skip-bundled.js" ]
[ "packages/babel-generator/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,163
babel__babel-15163
[ "15148" ]
871fd5ec0c22829495d6a11b1729feb7e9e52ad7
diff --git a/packages/babel-plugin-transform-parameters/src/index.ts b/packages/babel-plugin-transform-parameters/src/index.ts --- a/packages/babel-plugin-transform-parameters/src/index.ts +++ b/packages/babel-plugin-transform-parameters/src/index.ts @@ -27,7 +27,10 @@ export default declare((api, options: Options) => ...
diff --git a/packages/babel-plugin-transform-arrow-functions/test/fixtures/arrow-functions/super-call/input.js b/packages/babel-plugin-transform-arrow-functions/test/fixtures/arrow-functions/super-call/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-arrow-functions/test/fixtures/arrow-...
[Bug]: Super call in arrow function causing infinite recursion ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code ```js class Bar extends Foo { constructor() { let f = (...args) => super(...args); f(); } } ``` [Example on...
Hey @SuperSodaSea! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questi...
2022-11-08T17:50:32Z
7.20
[]
[ "packages/babel-plugin-transform-arrow-functions/test/index.js", "packages/babel-plugin-transform-parameters/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl/#?browsers=since%202017&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=MYGwhgzhAEBCYCdoFMAeAXZA7AJjAYgPaHQDeAUNFdMIVhOggK7DqEIAUAlGZdfyGTpoAM2gBeaBwB0sxAHMIPcQD5oEJgAdknWdIVKA3H35UR3Y_wC-5G0A&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluat...
babel/babel
15,198
babel__babel-15198
[ "15197" ]
31386b9eb4863eb07ec2d302e2cfcfa039eaf644
diff --git a/packages/babel-parser/src/parser/statement.ts b/packages/babel-parser/src/parser/statement.ts --- a/packages/babel-parser/src/parser/statement.ts +++ b/packages/babel-parser/src/parser/statement.ts @@ -2747,8 +2747,9 @@ export default abstract class StatementParser extends ExpressionParser { let isImp...
diff --git a/packages/babel-parser/test/fixtures/experimental/import-reflection/valid-module-as-default-binding-2/input.mjs b/packages/babel-parser/test/fixtures/experimental/import-reflection/valid-module-as-default-binding-2/input.mjs new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/experi...
[Bug]: "Support for the experimental syntax 'importReflection' isn't currently enabled" triggered incorrectly on some import statements ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%...
Hey @jpm4! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we ...
2022-11-16T01:41:45Z
7.20
[ "packages/babel-parser/test/options.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=PTAEHcHsCcGsGcBQBLAtgBxgF1KyATAVwBsBTUAM2klVAHI8iy6BuRECGBFDbUAb1ABjaKQCGWUgCVSAR0LJRoAL6VqtBgRKlW7MACNRY7mkzQcjbQBoBwo5JnzF5VVRr1LzFkA&debug=false&forceAllTransforms...
babel/babel
15,209
babel__babel-15209
[ "15205" ]
f6546d79d4c56809fc80d5414d6f7803eca9d59b
diff --git a/packages/babel-parser/src/parse-error/standard-errors.ts b/packages/babel-parser/src/parse-error/standard-errors.ts --- a/packages/babel-parser/src/parse-error/standard-errors.ts +++ b/packages/babel-parser/src/parse-error/standard-errors.ts @@ -35,10 +35,10 @@ export default { AwaitNotInAsyncContext: ...
diff --git a/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json b/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json --- a/packages/babel-parser/test/fixtures/core/object/invalid-setter/output.json +++ b/packages/babel-parser/test/fixtures/core/object/invalid-setter/outpu...
[Bug]: missing support for auto accessors with TypeScript annotations ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```ts class Foo { accessor prop: string = 1; } ``` ### Configuration file name _No response_ ...
Hey @bradzacher! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript question...
2022-11-18T09:56:47Z
7.20
[ "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/expression...
[ "packages/babel-plugin-transform-typescript/test/index.js", "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://www.typescriptlang.org/play?ts=4.9.3#code/MYGwhgzhAEBiD29oG8CwAoaXpmMAplPAE7QAOx8ZAXNBAC7ECWAdgObQC80A5GDwG4MAXwxA", "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=MYGwhgzhAEBiD29oG8BQ0PTMYBTK8ATtAA6HwkBc0EALoQJYB2A5tALzQCMA3KgL6ogA&debug=false&forceAl...
babel/babel
15,225
babel__babel-15225
[ "15221" ]
65c8496b8403aecb5e8bfc580c38321021d1ca16
diff --git a/packages/babel-parser/src/parser/expression.ts b/packages/babel-parser/src/parser/expression.ts --- a/packages/babel-parser/src/parser/expression.ts +++ b/packages/babel-parser/src/parser/expression.ts @@ -1304,10 +1304,8 @@ export default abstract class ExpressionParser extends LValParser { i...
diff --git a/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-labeled-inside-if/input.js b/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-labeled-inside-if/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/core/categorized/invalid-fn-decl-lab...
[Bug]: Babel throws on computed property access `using[x]` ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js var using = []; using[0]; ``` [REPL](https://babel.dev/repl#?browsers=&build=&builtIns=false&corejs=3....
Hey @JLHwung! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, ...
2022-11-25T22:15:16Z
7.20
[ "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=true&code_lz=G4QwTgBArgzglgOwOYQLwQNoF0DcAoWRJDABlyA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=env%2Ctypescript...
babel/babel
15,241
babel__babel-15241
[ "15105" ]
859daa3c185d18901106d8e6c39898ba1ce8e8f4
diff --git a/packages/babel-helpers/src/helpers.ts b/packages/babel-helpers/src/helpers.ts --- a/packages/babel-helpers/src/helpers.ts +++ b/packages/babel-helpers/src/helpers.ts @@ -612,7 +612,7 @@ helpers.set = helper("7.0.0-beta.0")` export default function _set(target, property, value, receiver, isStrict) { ...
diff --git a/packages/babel-plugin-proposal-class-properties/test/fixtures/static-property-tdz/decorator-interop/input.js b/packages/babel-plugin-proposal-class-properties/test/fixtures/class-name-tdz/decorator-interop/input.js similarity index 100% rename from packages/babel-plugin-proposal-class-properties/test/fixtu...
[Bug]: Wrong error name ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js "use strict"; let { 0 : x } = { get 0 ( ) { return super [ 0 ] = 0 ; } } ; ``` ### Configuration file name _No response_ ### Configuration _No respons...
Hey @p51lee! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-12-01T18:14:12Z
7.20
[]
[ "packages/babel-plugin-transform-object-super/test/index.js", "packages/babel-plugin-transform-classes/test/index.js", "packages/babel-plugin-proposal-class-properties/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=EQVwzgpgBGAuBOBLAxrYBuAUAGwrKA3lAAxQBcUAHlAL5QC8hUA5niVABRQCUT8eIeADsYIAA4R4UANrsAug3bpaK9EA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&s...
babel/babel
15,258
babel__babel-15258
[ "15257" ]
b0878e0ea7ca96b68e20671d217e112141a3d5ea
diff --git a/packages/babel-generator/src/node/parentheses.ts b/packages/babel-generator/src/node/parentheses.ts --- a/packages/babel-generator/src/node/parentheses.ts +++ b/packages/babel-generator/src/node/parentheses.ts @@ -90,6 +90,14 @@ const enum CheckParam { forOfHead = 1 << 5, } +function isTSTypeExpressi...
diff --git a/packages/babel-generator/test/fixtures/typescript/cast-need-parentheses/input.js b/packages/babel-generator/test/fixtures/typescript/cast-need-parentheses/input.js --- a/packages/babel-generator/test/fixtures/typescript/cast-need-parentheses/input.js +++ b/packages/babel-generator/test/fixtures/typescript/...
[Bug]:generate() modified parentheses in array with type assertions ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ``` import { parse } from "@babel/parser"; import generate from "@babel/generator"; con...
Hey @mrgreenward! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questio...
2022-12-07T21:36:18Z
7.20
[ "packages/babel-generator/test/arrow-functions.js", "packages/babel-generator/test/printer.skip-bundled.js", "packages/babel-plugin-proposal-optional-chaining/test/util.skip-bundled.js" ]
[ "packages/babel-generator/test/index.js", "packages/babel-plugin-proposal-optional-chaining/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,290
babel__babel-15290
[ "15261" ]
d8429111305491e57f8afee705b20647cad65995
diff --git a/packages/babel-helper-module-transforms/src/dynamic-import.ts b/packages/babel-helper-module-transforms/src/dynamic-import.ts --- a/packages/babel-helper-module-transforms/src/dynamic-import.ts +++ b/packages/babel-helper-module-transforms/src/dynamic-import.ts @@ -4,6 +4,7 @@ import * as t from "@babel/t...
diff --git a/packages/babel-plugin-proposal-dynamic-import/test/fixtures/amd/to-string/input.js b/packages/babel-plugin-proposal-dynamic-import/test/fixtures/amd/to-string/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-proposal-dynamic-import/test/fixtures/amd/to-string/input.js @@ -0,0 +1 @@ +...
[Bug]: Error in `toString` during dynamic import should result in rejected promise ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```js var filename = { toString: () => { throw "toString failure"; } } import(filename) .then(o...
Hey @f52985! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-12-17T16:09:07Z
7.20
[]
[ "packages/babel-plugin-proposal-dynamic-import/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl/#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=G4QwTgBAZglgNgUwHYgLYIgXggbwFAQQAuA9gMpFgxIDmAXBABQCUWAfLsQBZgkDuEAESkKVWtBDwArmASCA3BAC-eFXhioADiTBFGsRCnTM8AOiJdkjEgCMAVu1wEIAYxJIAziUSm4JGoyCGtq6EB5SLi4IHh6CzPKqJqYuIEQuXIwIYJCYHPiEbp7eCL7-gcE6RBLwCAAmcQlK8UA&de...
babel/babel
15,294
babel__babel-15294
[ "15293" ]
d8429111305491e57f8afee705b20647cad65995
diff --git a/packages/babel-traverse/src/path/modification.ts b/packages/babel-traverse/src/path/modification.ts --- a/packages/babel-traverse/src/path/modification.ts +++ b/packages/babel-traverse/src/path/modification.ts @@ -13,6 +13,7 @@ import { expressionStatement, isAssignmentExpression, isCallExpression...
diff --git a/packages/babel-plugin-proposal-class-properties/test/fixtures/private-loose/class-shadow-builtins/input.mjs b/packages/babel-plugin-proposal-class-properties/test/fixtures/private-loose/class-shadow-builtins/input.mjs new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-proposal-class-properties/...
[Bug]: Could not transpile code with enabled preset-env ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code ```js export class Number { static type = "number"; } ``` ### Configuration file name _No response_ ### Configuration _No response_ ### Current ...
Hey @Mavrin! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2022-12-21T22:41:53Z
7.20
[]
[ "packages/babel-plugin-proposal-class-properties/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl/#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=false&spec=false&loose=false&code_lz=KYDwDg9gTgLgBAYwDYEMDOa4DkCuBbAI2CjgG8AoOONGFGASwThgE8xg4BeOAIgDt8RKDwDc5AL7kgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=...
babel/babel
15,309
babel__babel-15309
[ "15308", "15308" ]
6a3421c2de74527e83a659b449ec266c3558d5ea
diff --git a/packages/babel-plugin-transform-block-scoping/src/index.ts b/packages/babel-plugin-transform-block-scoping/src/index.ts --- a/packages/babel-plugin-transform-block-scoping/src/index.ts +++ b/packages/babel-plugin-transform-block-scoping/src/index.ts @@ -71,14 +71,15 @@ export default declare((api, opts: Op...
diff --git a/packages/babel-plugin-transform-block-scoping/test/fixtures/general/for-variable-update-different-captured/exec.js b/packages/babel-plugin-transform-block-scoping/test/fixtures/general/for-variable-update-different-captured/exec.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-bl...
[Bug]: transform error when use two loops in one function with @babel/[email protected] ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ``` const test = (data) => { for (let i = 0; i < da...
Hey @Erucy! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we...
2022-12-23T16:33:16Z
7.20
[]
[ "packages/babel-plugin-transform-block-scoping/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,332
babel__babel-15332
[ "15325" ]
77d1aa09c9d95c3097ba375ddad5cebb503d3f21
diff --git a/packages/babel-helpers/src/helpers-generated.ts b/packages/babel-helpers/src/helpers-generated.ts --- a/packages/babel-helpers/src/helpers-generated.ts +++ b/packages/babel-helpers/src/helpers-generated.ts @@ -27,7 +27,11 @@ export default Object.freeze({ ), applyDecs2203: helper( "7.19.0", - ...
diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2022-03-accessors--to-es2015/private/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2022-03-accessors--to-es2015/private/output.js --- a/packages/babel-plugin-proposal-decorators/test/fixtures/2022-03-accessors--to-es2015/private/...
[Bug]: Stage 3 decorators: initializers are undefined in Custom Element constructors ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ```js const el = document.createElement('foo-el') document.body.append(el) function element(name) { ...
Hey @trusktr! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, ...
2023-01-06T20:29:37Z
7.20
[]
[ "packages/babel-plugin-proposal-decorators/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,338
babel__babel-15338
[ "15337" ]
77d1aa09c9d95c3097ba375ddad5cebb503d3f21
diff --git a/packages/babel-parser/src/plugins/typescript/index.ts b/packages/babel-parser/src/plugins/typescript/index.ts --- a/packages/babel-parser/src/plugins/typescript/index.ts +++ b/packages/babel-parser/src/plugins/typescript/index.ts @@ -2778,24 +2778,12 @@ export default (superClass: ClassWithMixin<typeof Par...
diff --git a/packages/babel-parser/test/fixtures/typescript/const/initializer-ambient-context/input.ts b/packages/babel-parser/test/fixtures/typescript/const/initializer-ambient-context/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/typescript/const/initializer-ambient-context/inp...
[Bug]: Babel unable to parse `export declare const` of a negative number literal in a .d.ts file ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code [REPL link](https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=fals...
Hey @karmeleon! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions...
2023-01-11T00:49:45Z
7.20
[ "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/attachComm...
[ "packages/babel-parser/test/estree-throws.js", "packages/babel-parser/test/index.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=KYDwDg9gTgLgBAE2AYwDYEMrDsiA7AZ3j2AHN0YBLAN2ADkBXAWwCNgo4BeOAWgEYA3ACggA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&file...
babel/babel
15,344
babel__babel-15344
[ "15343" ]
f7e231fc974f6d821bebf97c1ea462b33391b5b4
diff --git a/packages/babel-plugin-transform-typescript/src/index.ts b/packages/babel-plugin-transform-typescript/src/index.ts --- a/packages/babel-plugin-transform-typescript/src/index.ts +++ b/packages/babel-plugin-transform-typescript/src/index.ts @@ -160,6 +160,8 @@ export default declare((api, opts: Options) => { ...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-allowDeclareFields-false/input.ts b/packages/babel-plugin-transform-typescript/test/fixtures/class/abstract-allowDeclareFields-false/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixt...
[Bug]: @babel/preset-typescript initialize abstract properties when Typescript didn't ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ```ts abstract class A { abstract prop: string; } class B extends A { get prop() {} set prop(v...
Hey @Vampire2008! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questio...
2023-01-12T15:35:12Z
7.20
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,349
babel__babel-15349
[ "15348" ]
c19d2f60d4e4c70f287eab10e3688e58a0d76d56
diff --git a/packages/babel-plugin-transform-typescript/src/index.ts b/packages/babel-plugin-transform-typescript/src/index.ts --- a/packages/babel-plugin-transform-typescript/src/index.ts +++ b/packages/babel-plugin-transform-typescript/src/index.ts @@ -346,7 +346,7 @@ export default declare((api, opts: Options) => { ...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/only-remove-type-imports/output.mjs b/packages/babel-plugin-transform-typescript/test/fixtures/imports/only-remove-type-imports/output.mjs --- a/packages/babel-plugin-transform-typescript/test/fixtures/imports/only-remove-type-imports/output....
[Bug]: onlyRemoveTypeImports: true should not remove imports with only inline type specifier ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code ```ts import { type T } from "./mod"; ``` ### Configuration file name babel.config.json ### Configur...
Hey @latin-1! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, ...
2023-01-15T02:32:09Z
7.20
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,355
babel__babel-15355
[ "15353" ]
0f68471ef79933e192b69f2ebdf586fb5d5e54ce
diff --git a/packages/babel-plugin-transform-react-jsx/src/create-plugin.ts b/packages/babel-plugin-transform-react-jsx/src/create-plugin.ts --- a/packages/babel-plugin-transform-react-jsx/src/create-plugin.ts +++ b/packages/babel-plugin-transform-react-jsx/src/create-plugin.ts @@ -12,6 +12,7 @@ import type { Identi...
diff --git a/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/fragment/output.js b/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/fragment/output.js --- a/packages/babel-plugin-transform-react-inline-elements/test/fixtures/inline-elements/fragment/...
[Bug]: Fragments no longer work in mithril ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code unfortunately I can't provide a repo as it's from my company's gitlab which is private ### Configuration file name babel.config.js ### Configuration ``` m...
Hey @pdfabbro! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions,...
2023-01-19T15:25:45Z
7.20
[ "packages/babel-plugin-transform-react-jsx-source/test/index.js", "packages/babel-plugin-transform-react-jsx-self/test/index.js", "packages/babel-plugin-transform-react-jsx-compat/test/index.js" ]
[ "packages/babel-plugin-transform-react-inline-elements/test/index.js", "packages/babel-plugin-transform-react-jsx-development/test/index.js", "packages/babel-plugin-transform-react-jsx/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,361
babel__babel-15361
[ "15308" ]
112169cc94f70fff6b0fc7641e69be8076dbc90a
diff --git a/packages/babel-plugin-transform-block-scoping/src/index.ts b/packages/babel-plugin-transform-block-scoping/src/index.ts --- a/packages/babel-plugin-transform-block-scoping/src/index.ts +++ b/packages/babel-plugin-transform-block-scoping/src/index.ts @@ -87,13 +87,16 @@ export default declare((api, opts: Op...
diff --git a/packages/babel-plugin-transform-block-scoping/test/fixtures/regression/rename-with-other-plugins/input.ts b/packages/babel-plugin-transform-block-scoping/test/fixtures/regression/rename-with-other-plugins/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-block-scoping/test/f...
[Bug]: transform error when use two loops in one function with @babel/[email protected] ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ``` const test = (data) => { for (let i = 0; i < da...
Hey @Erucy! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we...
2023-01-24T08:32:48Z
7.20
[]
[ "packages/babel-plugin-transform-block-scoping/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,365
babel__babel-15365
[ "15363" ]
112169cc94f70fff6b0fc7641e69be8076dbc90a
diff --git a/packages/babel-generator/src/buffer.ts b/packages/babel-generator/src/buffer.ts --- a/packages/babel-generator/src/buffer.ts +++ b/packages/babel-generator/src/buffer.ts @@ -261,7 +261,8 @@ export default class Buffer { // We mark the start of each line, which happens directly after this newline c...
diff --git a/packages/babel-cli/test/fixtures/babel/filename-sourcemap --out-file --source-maps inline/in-files/.babelrc b/packages/babel-cli/test/fixtures/babel/filename-sourcemap --out-file --source-maps inline/in-files/.babelrc --- a/packages/babel-cli/test/fixtures/babel/filename-sourcemap --out-file --source-maps ...
[Bug]: Babel breaks on Source Maps merge when adding multi-line block comments through babel-core `NodePath.addComment` API ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code ## Minimal Reproducible Example https://github.com/ernestostifano/babel-comments-issue #...
Hey @ernestostifano! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript ques...
2023-01-25T02:15:05Z
7.20
[ "packages/babel-core/test/merge-map.js", "packages/babel-core/test/evaluation.js", "packages/babel-core/test/caching-api.js", "packages/babel-core/test/external-dependencies.js", "packages/babel-core/test/targets.js", "packages/babel-core/test/parse.js", "packages/babel-core/test/config-loading.js", "...
[ "packages/babel-core/test/transformation.js" ]
TypeScript
[]
[]
babel/babel
15,377
babel__babel-15377
[ "15376" ]
90ad7e9b263ec427dae55a1752df67f64368588a
diff --git a/packages/babel-parser/src/parser/expression.ts b/packages/babel-parser/src/parser/expression.ts --- a/packages/babel-parser/src/parser/expression.ts +++ b/packages/babel-parser/src/parser/expression.ts @@ -1918,7 +1918,10 @@ export default abstract class ExpressionParser extends LValParser { node.call...
diff --git a/packages/babel-parser/test/fixtures/es2020/optional-chaining/new-createParenthesizedExpressions-false/input.js b/packages/babel-parser/test/fixtures/es2020/optional-chaining/new-createParenthesizedExpressions-false/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/es2020...
[Bug]: Inconsistent on different `createParenthesizedExpressions` option ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js new (foo?.bar)(); ``` ### Configuration file name _No response_ ### Confi...
Hey @fisker! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2023-01-30T04:18:42Z
7.20
[ "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[]
babel/babel
15,398
babel__babel-15398
[ "15397" ]
91b24d5d556257c547da9411011d77b49a77ca7f
diff --git a/packages/babel-plugin-transform-block-scoping/src/index.ts b/packages/babel-plugin-transform-block-scoping/src/index.ts --- a/packages/babel-plugin-transform-block-scoping/src/index.ts +++ b/packages/babel-plugin-transform-block-scoping/src/index.ts @@ -84,10 +84,7 @@ export default declare((api, opts: Opt...
diff --git a/packages/babel-plugin-transform-block-scoping/test/fixtures/general/issue-15308-for-variable-shadow-and-capture/output.js b/packages/babel-plugin-transform-block-scoping/test/fixtures/general/issue-15308-for-variable-shadow-and-capture/output.js --- a/packages/babel-plugin-transform-block-scoping/test/fixt...
[Bug]: Endless loop found in code transformed by plugin @babel/plugin-transform-block-scoping ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ```js var i; for (let i = 0; i < 1; ) { i++ () => i; } ``` ### Configuration file name babel.co...
Hey @a130888599! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript question...
2023-02-02T12:50:00Z
7.20
[]
[ "packages/babel-plugin-transform-block-scoping/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,406
babel__babel-15406
[ "8507" ]
0c97749e0fe8ad845b902e0b23a24b308b0bf05d
diff --git a/packages/babel-helper-create-class-features-plugin/src/fields.ts b/packages/babel-helper-create-class-features-plugin/src/fields.ts --- a/packages/babel-helper-create-class-features-plugin/src/fields.ts +++ b/packages/babel-helper-create-class-features-plugin/src/fields.ts @@ -557,14 +557,17 @@ function bu...
diff --git a/packages/babel-plugin-proposal-class-properties/test/fixtures/compile-to-class/preserve-comments/input.js b/packages/babel-plugin-proposal-class-properties/test/fixtures/compile-to-class/preserve-comments/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-proposal-class-properties/test...
Babel transpiler dislocates comments when fat arrow functions are used! ## Bug Report Babel transpiler dislocates the jsdocs comments to a separate location in the output file when fat arrow functions are used in a class. **Current Behavior** for example, the following function has associated jsdoc comments: ```...
Hey @SandeepVattapparambil! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScri...
2023-02-03T20:04:52Z
7.20
[ "packages/babel-plugin-proposal-class-static-block/test/plugin-ordering.test.js", "packages/babel-plugin-transform-classes/test/index.js" ]
[ "packages/babel-plugin-transform-new-target/test/index.js", "packages/babel-plugin-proposal-class-static-block/test/index.js", "packages/babel-plugin-proposal-private-methods/test/index.js", "packages/babel-plugin-proposal-class-properties/test/index.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=PQKhCgAIUhRBlAbJAxgGwIYGcuQO4CWALgBaQBmGRkGATrQPZ6QEB2rAprRQK6spECDVlighg4cAHIeWDpCxFaBAVIDck0BGiQAAumy4ACgzQBPAObCxkACol5AWwxtIAB1OXhqTDjESDHEgTcytWSABvSUgYyC0oWJ0AYV9cFGFFWh4BBloE2JhdNzoMR0iQAF9IBwILEmp8mMLi2lLyq...
babel/babel
15,423
babel__babel-15423
[ "13702", "13743" ]
c38bf12f010520ea7abe8a286f62922b2d1e1f1b
diff --git a/packages/babel-parser/src/plugins/typescript/index.ts b/packages/babel-parser/src/plugins/typescript/index.ts --- a/packages/babel-parser/src/plugins/typescript/index.ts +++ b/packages/babel-parser/src/plugins/typescript/index.ts @@ -214,6 +214,8 @@ const TSErrors = ParseErrorEnum`typescript`({ `Singl...
diff --git a/packages/babel-parser/test/fixtures/typescript/types/tuple-keyword-labeled-babel-7/input.ts b/packages/babel-parser/test/fixtures/typescript/types/tuple-keyword-labeled-babel-7/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/typescript/types/tuple-keyword-labeled-babel...
[Bug]: Typescript plugin fails on named tuple positions where the name is a reserved word in JS ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ``` type FuncWithDescription = [ function: (...args: any[]) => any, string: string ] ``...
Hey @happycollision! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript q...
2023-02-14T19:27:53Z
7.21
[ "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://babeljs.io/repl#?browsers=defaults&build=&builtIns=false&corejs=3.6&spec=false&loose=false&code_lz=C4TwDgpgBAYgrgOwMYHUCWwAWARCBnJAJzTGDQHsEoBeKAbQCgooAzRJMygLigAoA6QQENCAczw8hCEHQC6AShoA-KFJAAaJlDzBiCUTx17RDWQwZJKO1gnRZcBYqQoIJsdnZz4iJTgjk09FrMdLwAHlwIcAC2AEYQhIrUKmHqUABEhBDAcIRUWNBRcQnpsprMIeGRMfGEaSDVxY...
babel/babel
15,427
babel__babel-15427
[ "9916" ]
1945bafcf3599292f7ebeccd5c7c2635dd1cb0d5
diff --git a/packages/babel-helper-create-class-features-plugin/src/fields.ts b/packages/babel-helper-create-class-features-plugin/src/fields.ts --- a/packages/babel-helper-create-class-features-plugin/src/fields.ts +++ b/packages/babel-helper-create-class-features-plugin/src/fields.ts @@ -1277,6 +1277,12 @@ export fun...
diff --git a/packages/babel-plugin-proposal-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types-babel-7/output.js b/packages/babel-plugin-proposal-class-properties/test/fixtures/compile-to-class/constructor-collision-ignores-types-babel-7/output.js --- a/packages/babel-plugin-proposal-cl...
@babel/plugin-transform-typescript strips vital JSDoc @typedef comments ## Bug Report <br> **EDIT:** See my comment https://github.com/babel/babel/issues/9916#issuecomment-489404010 below, there is a strange inconsistency depending on the location of `import` statements. <br> Running Babel with nothing but ...
Hey @lll000111! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions...
2023-02-15T16:30:31Z
7.20
[ "packages/babel-traverse/test/hub.js", "packages/babel-traverse/test/introspection.js", "packages/babel-traverse/test/traverse.js", "packages/babel-traverse/test/replacement.js", "packages/babel-traverse/test/path/index.js", "packages/babel-traverse/test/family.js", "packages/babel-traverse/test/modific...
[ "packages/babel-traverse/test/index.js", "packages/babel-plugin-transform-typescript/test/index.js", "packages/babel-plugin-proposal-class-properties/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,467
babel__babel-15467
[ "9268" ]
9a85d70381beda6011e8703e13b3a5fd6056654a
diff --git a/packages/babel-plugin-transform-typescript/src/enum.ts b/packages/babel-plugin-transform-typescript/src/enum.ts --- a/packages/babel-plugin-transform-typescript/src/enum.ts +++ b/packages/babel-plugin-transform-typescript/src/enum.ts @@ -1,16 +1,26 @@ import { template, types as t } from "@babel/core"; i...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/output.js b/packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/output.js --- a/packages/babel-plugin-transform-typescript/test/fixtures/enum/boolean-value/output.js +++ b/packages/babel-plugin-transform-typ...
[Feature Request] TypeScript make generated codes from enum could be minified when not used ## Feature Request **Is your feature request related to a problem? Please describe.** For now TypeScript will transform enum from ```ts enum Test { Key = 1 } ``` to ```ts var Test; (function (Test) { ...
Hey @morlay! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, w...
2023-03-04T06:29:57Z
7.21
[ "packages/babel-preset-typescript/test/normalize-options.skip-bundled.js" ]
[ "packages/babel-preset-typescript/test/index.js", "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,489
babel__babel-15489
[ "15486" ]
48089fb29faf9c167c5ef2130f92a2f652b6d378
diff --git a/packages/babel-plugin-transform-typescript/src/index.ts b/packages/babel-plugin-transform-typescript/src/index.ts --- a/packages/babel-plugin-transform-typescript/src/index.ts +++ b/packages/babel-plugin-transform-typescript/src/index.ts @@ -592,6 +592,7 @@ export default declare((api, opts: Options) => { ...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/import=-declaration/input.ts b/packages/babel-plugin-transform-typescript/test/fixtures/imports/import=-declaration/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/imports/import=-dec...
[Bug]: Missing registerDeclaration in plugin-transform-typescript ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ``` import foo = bar ``` ### Configuration file name _No response_ ### Configuration _No response_ #...
Hey @amoeller! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions,...
2023-03-13T12:24:15Z
7.21
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,494
babel__babel-15494
[ "15493" ]
216bed0ca6de3cd9f246b62d00e020f52450cbdc
diff --git a/packages/babel-plugin-transform-typescript/src/index.ts b/packages/babel-plugin-transform-typescript/src/index.ts --- a/packages/babel-plugin-transform-typescript/src/index.ts +++ b/packages/babel-plugin-transform-typescript/src/index.ts @@ -24,9 +24,12 @@ function isInType(path: NodePath) { ); ...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-1/input.ts b/packages/babel-plugin-transform-typescript/test/fixtures/imports/type-only-export-specifier-1/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/i...
[Bug]: `export { type <ident> }` doesn't mark `<ident>` as a type ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```ts import { A } from "./a.js"; export { type A }; ``` ### Configuration file name _No response_ ...
Hey @lucacasonato! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questi...
2023-03-13T19:41:35Z
7.21
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[ "https://www.typescriptlang.org/play?isolatedModules=true#code/PTAECMDoBcGcCgCWBbADgewE7VAb1AIKgC+oAZpusqAESTACGkAVrDQNzwCmAHhtnlDQAnqi6ES7IA" ]
babel/babel
15,631
babel__babel-15631
[ "15628" ]
1e6551f4bb8b2462fdb79c1ea8e6d610420a367d
diff --git a/packages/babel-parser/src/plugins/typescript/index.ts b/packages/babel-parser/src/plugins/typescript/index.ts --- a/packages/babel-parser/src/plugins/typescript/index.ts +++ b/packages/babel-parser/src/plugins/typescript/index.ts @@ -2281,6 +2281,10 @@ export default (superClass: ClassWithMixin<typeof Pars...
diff --git a/packages/babel-parser/test/fixtures/typescript/type-arguments/instantiation-expression-false-positive-5/input.ts b/packages/babel-parser/test/fixtures/typescript/type-arguments/instantiation-expression-false-positive-5/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-parser/test/fixtures/ty...
[Bug]: `x < y >= z` is incorrectly considered an assignment expression in TypeScript ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Other (Next.js, Gatsby, vue-cli, ...) ### Input code ```ts fn(x < y, x >= y) ``` REPL: [link](https://babel.dev/repl#?browsers=&code_lz=GYOwFAHgBAPFCe...
Hey @evanw! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we...
2023-05-16T19:44:39Z
7.21
[ "packages/babel-parser/test/unit/util/identifier.skip-bundled.js", "packages/babel-parser/test/unit/tokenizer/types.skip-bundled.js", "packages/babel-parser/test/options.js", "packages/babel-parser/test/plugin-options.js", "packages/babel-parser/test/error-codes.js", "packages/babel-parser/test/expression...
[ "packages/babel-parser/test/index.js", "packages/babel-parser/test/estree-throws.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=&code_lz=GYOwFAHgBAPFCeAaK0B8BeBBKAUEA&presets=env%2Ctypescript&version=7.21.8" ]
babel/babel
15,739
babel__babel-15739
[ "15738" ]
41dea06797a2cdee3cc1b39e067ac00e3cdf1268
diff --git a/packages/babel-plugin-transform-optional-chaining/src/transform.ts b/packages/babel-plugin-transform-optional-chaining/src/transform.ts --- a/packages/babel-plugin-transform-optional-chaining/src/transform.ts +++ b/packages/babel-plugin-transform-optional-chaining/src/transform.ts @@ -50,36 +50,34 @@ funct...
diff --git a/packages/babel-plugin-transform-optional-chaining/test/fixtures/general/delete-in-function-params/input.js b/packages/babel-plugin-transform-optional-chaining/test/fixtures/general/delete-in-function-params/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-optional-chaining/...
[Bug]: Invalid transfor for optional chain delete in function params ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js function f(x = delete a?.b) {} ``` ### Configuration file name _No response_ ### Configuratio...
2023-07-03T13:42:03Z
7.22
[ "packages/babel-plugin-transform-optional-chaining/test/util.skip-bundled.js" ]
[ "packages/babel-plugin-transform-optional-chaining/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,757
babel__babel-15757
[ "15756" ]
61147b748a4ad9cb5342c501881a225980938a6f
diff --git a/packages/babel-generator/src/index.ts b/packages/babel-generator/src/index.ts --- a/packages/babel-generator/src/index.ts +++ b/packages/babel-generator/src/index.ts @@ -71,7 +71,7 @@ function normalizeOptions( minimal: process.env.BABEL_8_BREAKING ? true : false, ...opts.jsescOption, },...
diff --git a/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/input.js b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/input.js new file mode 100644 --- /dev/null +++ b/packages/babel-generator/test/fixtures/recordAndTupleSyntaxType/default/input.js @@ -0,0 +1 @@ +#[ 1 ]...
[Bug]: Error: undefined is not a valid recordAndTuple syntax type ### πŸ’» - [x] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js const parser = require('@babel/parser'); const traverse = require('@babel/traverse').default; co...
Hey @coderaiser! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript question...
2023-07-06T13:24:44Z
7.22
[ "packages/babel-generator/test/printer.skip-bundled.js", "packages/babel-generator/test/arrow-functions.js" ]
[ "packages/babel-generator/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,774
babel__babel-15774
[ "15768" ]
8d889c41d1918b98480cd552fc5a690364a5c81f
diff --git a/packages/babel-plugin-transform-typescript/src/enum.ts b/packages/babel-plugin-transform-typescript/src/enum.ts --- a/packages/babel-plugin-transform-typescript/src/enum.ts +++ b/packages/babel-plugin-transform-typescript/src/enum.ts @@ -301,6 +301,10 @@ function computeConstantValue( } else if (path....
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/regression/15768/input.ts b/packages/babel-plugin-transform-typescript/test/fixtures/regression/15768/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/regression/15768/input.ts @@ -0,0 +1,11 @...
[Bug]: TypeScript Enums With Global Properties Like `Infinity` or `NaN` Are Transpiled as Members ### How are you using Babel? REPL ### Input code ```ts const v = 42; enum StateEnum { okay = 0, neg = -Infinity, pos = Infinity, nan = NaN, ext = v, } ``` [REPL v7.22.8](https://babeljs.io/repl#?b...
Hey @htho! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, we ...
2023-07-11T22:17:57Z
7.22
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=MYewdgzgLgBAbjAvDALAJgNwCgsFMwCuAtjAMpQCGUuAooSQN5YCQIA1hQJ5IwAMANCzC4A5jwC0ASTAAzAJZg5UToOYAHEBB7T5i5arAUwPAHIUTq3AA9YyOIIC-QA&debug=false&forceAllTransforms=false&modules=false&shippedProposals=false&circleciRepo=&...
babel/babel
15,798
babel__babel-15798
[ "15796" ]
b798a6944139aa7041f29a79095ecbea4d10530f
diff --git a/packages/babel-plugin-transform-typescript/src/index.ts b/packages/babel-plugin-transform-typescript/src/index.ts --- a/packages/babel-plugin-transform-typescript/src/index.ts +++ b/packages/babel-plugin-transform-typescript/src/index.ts @@ -460,6 +460,29 @@ export default declare((api, opts: Options) => {...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested-shorthand-export/input.ts b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested-shorthand-export/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/namespa...
[Bug]: @babel/preset-typescript compile ts file error ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code ```js export namespace ui.answer.box { export class BoxDialogUI { } export class RewardDialogUI { } } export namespace ...
Hey @Cola-Zhang! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript question...
2023-07-19T09:39:39Z
7.22
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,882
babel__babel-15882
[ "15875" ]
c3f03f678231f3ead7e3ed31c2401adf8d93f5c7
diff --git a/packages/babel-plugin-transform-typescript/src/namespace.ts b/packages/babel-plugin-transform-typescript/src/namespace.ts --- a/packages/babel-plugin-transform-typescript/src/namespace.ts +++ b/packages/babel-plugin-transform-typescript/src/namespace.ts @@ -242,6 +242,9 @@ function handleNested( ...
diff --git a/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested-namespace/input.ts b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested-namespace/input.ts new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-typescript/test/fixtures/namespace/nested-name...
[Bug]: export namespace compiled failed in create-react-app ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code test-ts.ts ``` export namespace RuntimeStatus { export namespace Progress { export interface Quantity { total?: number...
Hey @yangguansen! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questio...
2023-08-23T12:17:31Z
7.22
[]
[ "packages/babel-plugin-transform-typescript/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,888
babel__babel-15888
[ "15887" ]
c71a2177639b0782b594a44afd685d4631884e6d
diff --git a/packages/babel-plugin-transform-optional-chaining/src/transform.ts b/packages/babel-plugin-transform-optional-chaining/src/transform.ts --- a/packages/babel-plugin-transform-optional-chaining/src/transform.ts +++ b/packages/babel-plugin-transform-optional-chaining/src/transform.ts @@ -6,6 +6,9 @@ import { ...
diff --git a/packages/babel-plugin-transform-optional-chaining/test/fixtures/general/member-access/output.js b/packages/babel-plugin-transform-optional-chaining/test/fixtures/general/member-access/output.js --- a/packages/babel-plugin-transform-optional-chaining/test/fixtures/general/member-access/output.js +++ b/packa...
[Bug]: Optional chaining expressions resolving as `true` instead of undefined ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? babel-loader (webpack) ### Input code https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.2...
Hey @EJLearner! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions...
2023-08-24T19:51:55Z
7.22
[ "packages/babel-plugin-transform-optional-chaining/test/util.skip-bundled.js" ]
[ "packages/babel-plugin-transform-optional-chaining/test/index.js" ]
TypeScript
[]
[ "https://babel.dev/repl#?browsers=defaults%2C%20not%20ie%2011%2C%20not%20ie_mob%2011&build=&builtIns=false&corejs=3.21&spec=false&loose=false&code_lz=PTAEDMEsCcGcBdQBtIDsCmoAWBDWoADACgH1p1xQBeUVAVySQEpqqb7GDQ9QAHHaIgD2leFkzoAHr3KxYkIalAB3LJADGWUOgBuOJHXjp88IYXjQ66LumjRF6IXVhIAnt1QATULIbx8aKBimKpCSBLSsvKKoABG6GgA5ua...
babel/babel
15,895
babel__babel-15895
[ "15889" ]
4bf593259aab15f902401faaf2a425ed8cc5bbf0
diff --git a/packages/babel-helpers/src/helpers-generated.ts b/packages/babel-helpers/src/helpers-generated.ts --- a/packages/babel-helpers/src/helpers-generated.ts +++ b/packages/babel-helpers/src/helpers-generated.ts @@ -39,7 +39,7 @@ export default Object.freeze({ ), applyDecs2305: helper( "7.21.0", - ...
diff --git a/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/output.js b/packages/babel-plugin-proposal-decorators/test/fixtures/2023-05-assumption-constantSuper/super-in-nested-constructor-expression/output.js --- a/packages/babel-plugin-p...
[Bug]: Decorator metadata is not implemented ### πŸ’» - [ ] Would you like to work on a fix? ### How are you using Babel? @babel/cli ### Input code ```js function test(target, context) { console.log(context.metadata); // undefined } class A { @test foo; } ``` I am not able to make a reproduction with...
Hey @justinfagnani! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript quest...
2023-08-25T15:33:41Z
7.22
[]
[ "packages/babel-plugin-proposal-decorators/test/index.js" ]
TypeScript
[]
[]
babel/babel
15,923
babel__babel-15923
[ "15916" ]
b240d3f5b78b3dcda87311e3e0f9491fb570963e
diff --git a/packages/babel-core/src/config/files/configuration.ts b/packages/babel-core/src/config/files/configuration.ts --- a/packages/babel-core/src/config/files/configuration.ts +++ b/packages/babel-core/src/config/files/configuration.ts @@ -41,8 +41,6 @@ const RELATIVE_CONFIG_FILENAMES = [ const BABELIGNORE_FI...
diff --git a/packages/babel-core/test/config-loading.js b/packages/babel-core/test/config-loading.js --- a/packages/babel-core/test/config-loading.js +++ b/packages/babel-core/test/config-loading.js @@ -3,12 +3,14 @@ import { loadOptionsSync, loadOptionsAsync, loadPartialConfig, + loadPartialConfigAsync, l...
[Bug]: @babel/core version 7.22.11 breaks the build ### πŸ’» ### How are you using Babel? @rollup/plugin-babel ### Input code I have a simple repro in this repo https://github.com/arthirm/babel-core-issue1. Downloading and doing `yarn install` and `yarn build` should break the build with the following error ...
Hey @arthirm! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly. If you need any help, or just have general Babel or JavaScript questions, ...
2023-09-03T16:12:01Z
7.22
[ "packages/babel-core/test/esm-cjs-integration.js", "packages/babel-core/test/merge-map.js", "packages/babel-core/test/path.js", "packages/babel-core/test/targets.js", "packages/babel-core/test/parse.js", "packages/babel-core/test/evaluation.js", "packages/babel-core/test/assumptions.js", "packages/bab...
[ "packages/babel-core/test/config-loading.js" ]
TypeScript
[]
[]
babel/babel
15,941
babel__babel-15941
[ "15939" ]
85a35adf1292a2035c23478da82f827968e64c28
diff --git a/packages/babel-helper-module-transforms/src/index.ts b/packages/babel-helper-module-transforms/src/index.ts --- a/packages/babel-helper-module-transforms/src/index.ts +++ b/packages/babel-helper-module-transforms/src/index.ts @@ -211,8 +211,7 @@ export function buildNamespaceInitStatements( ) { const s...
diff --git a/packages/babel-plugin-transform-modules-commonjs/test/fixtures/lazy-dep/import-namespace-and-named/input.mjs b/packages/babel-plugin-transform-modules-commonjs/test/fixtures/lazy-dep/import-namespace-and-named/input.mjs new file mode 100644 --- /dev/null +++ b/packages/babel-plugin-transform-modules-common...
[Bug]: commonjs lazy transform produces invalid output with multiple ns imports for same module ### πŸ’» - [X] Would you like to work on a fix? ### How are you using Babel? Programmatic API (`babel.transform`, `babel.parse`) ### Input code ```js import * as a from "mod"; import * as b from "mod"; later(() => [a...
Still happens with https://github.com/babel/babel/pull/15878, also with `import defer`. This bug blocks #15878 and https://github.com/babel/babel/pull/15898.
2023-09-07T13:00:44Z
7.22
[ "packages/babel-plugin-transform-modules-commonjs/test/importInterop-function.js", "packages/babel-plugin-transform-modules-commonjs/test/copied-nodes.js", "packages/babel-plugin-transform-modules-commonjs/test/esmodule-flag.js" ]
[ "packages/babel-plugin-transform-modules-commonjs/test/index.js" ]
TypeScript
[]
[]