Skip to content

Commit

Permalink
Merge pull request #1969 from eirannejad/develop
Browse files Browse the repository at this point in the history
Clean code samples late at night over the weekend: ''' for ```
  • Loading branch information
jmcouffin authored Oct 22, 2023
2 parents 0c33a80 + 6f71503 commit b5ef52e
Show file tree
Hide file tree
Showing 35 changed files with 225 additions and 225 deletions.
8 changes: 4 additions & 4 deletions pyrevitlib/pyrevit/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""pyRevit root level config for all pyrevit sub-modules.
Examples:
'''python
```python
from pyrevit import DB, UI
from pyrevit import PyRevitException, PyRevitIOError
Expand All @@ -10,7 +10,7 @@
# import and use them like below
from pyrevit import HOST_APP
from pyrevit import EXEC_PARAMS
'''
```
"""
#pylint: disable=W0703,C0302,C0103,C0413,raise-missing-from
import sys
Expand Down Expand Up @@ -182,10 +182,10 @@ class _HostApplication(object):
postable commands, and other functionality.
Examples:
'''python
```python
hostapp = _HostApplication()
hostapp.is_newer_than(2017)
'''
```
"""

def __init__(self):
Expand Down
4 changes: 2 additions & 2 deletions pyrevitlib/pyrevit/api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"""Provide access to Revit API.
Examples:
'''python
```python
from pyrevit.api import AdWindows
'''
```
"""
import os.path as op

Expand Down
4 changes: 2 additions & 2 deletions pyrevitlib/pyrevit/compat.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"""python engine compatibility module.
Examples:
'''python
```python
from pyrevit.compat import IRONPY277
from pyrevit.compat import safe_strtype
'''
```
"""

import sys
Expand Down
Loading

0 comments on commit b5ef52e

Please sign in to comment.