Issue - 27482 : fixed isnull attribute for type objects
State: closed

- [yes] closes #27482 
- [yes] tests added / passed
- [ ] passes `black pandas`
- [ ] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [yes] whatsnew entry 


Labels:

Comments:
Hello @AlejandroGuariguata! Thanks for opening this PR. We checked the lines you've touched for [PEP 8](https://www.python.org/dev/peps/pep-0008) issues, and found:

* In the file [`pandas/core/dtypes/missing.py`](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/pandas/core/dtypes/missing.py):

> [Line 130:55](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/pandas/core/dtypes/missing.py#L130): [W291](https://duckduckgo.com/?q=pep8%20W291) trailing whitespace
> [Line 131:22](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/pandas/core/dtypes/missing.py#L131): [E711](https://duckduckgo.com/?q=pep8%20E711) comparison to None should be 'if cond is None:'
> [Line 131:30](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/pandas/core/dtypes/missing.py#L131): [W291](https://duckduckgo.com/?q=pep8%20W291) trailing whitespace
> [Line 133:5](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/pandas/core/dtypes/missing.py#L133): [E722](https://duckduckgo.com/?q=pep8%20E722) do not use bare 'except'

* In the file [`scripts/tests/test_27482.py`](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py):

> [Line 5:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L5): [E302](https://duckduckgo.com/?q=pep8%20E302) expected 2 blank lines, found 1
> [Line 6:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L6): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 6:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L6): [W293](https://duckduckgo.com/?q=pep8%20W293) blank line contains whitespace
> [Line 7:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L7): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 7:2](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L7): [E117](https://duckduckgo.com/?q=pep8%20E117) over-indented
> [Line 8:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L8): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 8:3](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L8): [E117](https://duckduckgo.com/?q=pep8%20E117) over-indented
> [Line 8:19](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L8): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 8:21](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L8): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 8:23](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L8): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 9:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L9): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 10:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L10): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 10:23](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L10): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 10:23](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L10): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 10:30](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L10): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 12:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L12): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 13:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L13): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 13:3](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L13): [E117](https://duckduckgo.com/?q=pep8%20E117) over-indented
> [Line 13:30](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L13): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 13:32](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L13): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 13:34](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L13): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 14:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L14): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 15:1](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L15): [W191](https://duckduckgo.com/?q=pep8%20W191) indentation contains tabs
> [Line 15:23](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L15): [E225](https://duckduckgo.com/?q=pep8%20E225) missing whitespace around operator
> [Line 15:23](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L15): [E712](https://duckduckgo.com/?q=pep8%20E712) comparison to False should be 'if cond is False:' or 'if not cond:'
> [Line 15:30](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L15): [E231](https://duckduckgo.com/?q=pep8%20E231) missing whitespace after ','
> [Line 19:20](https://github.com/pandas-dev/pandas/blob/b3abf1542419b27b5a903b0980f1e8a026923aab/scripts/tests/test_27482.py#L19): [W292](https://duckduckgo.com/?q=pep8%20W292) no newline at end of file


Thanks @AlejandroGuariguata, but we had https://github.com/pandas-dev/pandas/pull/27664 working on this.